You are not logged in.

#1 2023-03-24 00:17:18

dustovich
Member
Registered: 2016-10-20
Posts: 9

Home Assistant zigpy-znp

Hello,
I think this should be the correct forum but if it needs to be moved go right ahead. With the latest home assistant and some very recent editions (currently on 2023.3.5-1) my zigbee stick ceased functioning due to not being able to find the zigpy-znp module even though it exists just fine in /var/log/hass/deps/lib. I have tried blowing out the dependencies and whatnot and it does not solve it whatsoever. Over on the home-assistant forums they believe it is an OS related issue as dietpy had the same issue and it was eventually resolved by a new edition. I don't know if some other python package is conflicting with this as it is nowhere in the logs saying so. Anybody have any ideas? Relevant log follows.

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/lib/python3.10/site-packages/homeassistant/components/zha/__init__.py", line 122, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 200, in async_initialize
    raise exc
  File "/usr/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy/application.py", line 171, in new
    await app.startup(auto_form=auto_form)
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy/application.py", line 146, in startup
    await self.initialize(auto_form=auto_form)
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy/application.py", line 91, in initialize
    await self.load_network_info(load_devices=False)
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 160, in load_network_info
    await self._znp.load_network_info(load_devices=load_devices)
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy_znp/api.py", line 229, in load_network_info
    await self._load_network_info(load_devices=load_devices)
  File "/var/lib/hass/deps/lib/python3.10/site-packages/zigpy_znp/api.py", line 139, in _load_network_info
    package_version = pkg_resources.get_distribution("zigpy_znp").version
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 526, in get_distribution
    dist = get_provider(dist)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 398, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 966, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 827, in resolve
    dist = self._resolve_dist(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 868, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'zigpy_znp' distribution was not found and is required by the application

Offline

#2 2023-03-24 00:28:16

dustovich
Member
Registered: 2016-10-20
Posts: 9

Re: Home Assistant zigpy-znp

After more research. Found it could be this:
https://github.com/MichaIng/DietPi/issues/6117
It looks like the arch python-sqlalchemy package is out of date. Once this gets updated we should be happy again. Unfortunately it was flagged out of date 2 months ago and hasn’t been updated so the wait may be a while.

Offline

Board footer

Powered by FluxBB