Errors after 0.39 update

Hi all

After the update i get this lovely long list of errors :cry:

I have got all my zwave devices working again and Im too new to debug this myself

Thanks For any help/advice

17-02-27 13:02:22 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform zwave
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 47, in setup_platform
add_devices([ZWaveAlarmSensor(value)])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 55, in init
zwave.ZWaveDeviceEntity.init(self, value, DOMAIN)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 681, in init
self._update_attributes()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 712, in _update_attributes
label=[‘Power’])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 763, in get_value
return self._value_handler(method=‘get’, **kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 731, in _value_handler
class_id=cid, **kwargs).values())
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/node.py”, line 445, in get_values
for value in self.values:
RuntimeError: dictionary changed size during iteration
17-02-27 13:02:22 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform zwave
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 47, in setup_platform
add_devices([ZWaveAlarmSensor(value)])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 55, in init
zwave.ZWaveDeviceEntity.init(self, value, DOMAIN)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 681, in init
self._update_attributes()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 712, in _update_attributes
label=[‘Power’])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 763, in get_value
return self._value_handler(method=‘get’, **kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 731, in _value_handler
class_id=cid, **kwargs).values())
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/node.py”, line 445, in get_values
for value in self.values:
RuntimeError: dictionary changed size during iteration
17-02-27 13:02:23 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform zwave
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 47, in setup_platform
add_devices([ZWaveAlarmSensor(value)])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py”, line 55, in init
zwave.ZWaveDeviceEntity.init(self, value, DOMAIN)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 681, in init
self._update_attributes()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 712, in _update_attributes
label=[‘Power’])
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 763, in get_value
return self._value_handler(method=‘get’, **kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 731, in _value_handler
class_id=cid, **kwargs).values())
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/node.py”, line 445, in get_values
for value in self.values:
RuntimeError: dictionary changed size during iteration

A lot of changes have been made on the 0.39 update concerning Z-wave devices management as I can see on the release note https://home-assistant.io/blog/2017/02/25/config-panel-and-state-restoration/ it might be your problem.

kind of same error here …

Feb 28 10:45:27 raspberrypi hass[2021]: 17-02-28 10:45:26 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform zwave
Feb 28 10:45:27 raspberrypi hass[2021]: Traceback (most recent call last):
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
Feb 28 10:45:27 raspberrypi hass[2021]: entity_platform.add_entities, discovery_info
Feb 28 10:45:27 raspberrypi hass[2021]: File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
Feb 28 10:45:27 raspberrypi hass[2021]: yield self  # This tells Task to wait for completion.
Feb 28 10:45:27 raspberrypi hass[2021]: File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
Feb 28 10:45:27 raspberrypi hass[2021]: value = future.result()
Feb 28 10:45:27 raspberrypi hass[2021]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Feb 28 10:45:27 raspberrypi hass[2021]: raise self._exception
Feb 28 10:45:27 raspberrypi hass[2021]: File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
Feb 28 10:45:27 raspberrypi hass[2021]: result = self.fn(*self.args, **self.kwargs)
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py", line 47, in setup_platform
Feb 28 10:45:27 raspberrypi hass[2021]: add_devices([ZWaveAlarmSensor(value)])
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/zwave.py", line 55, in __init__
Feb 28 10:45:27 raspberrypi hass[2021]: zwave.ZWaveDeviceEntity.__init__(self, value, DOMAIN)
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/__init__.py", line 681, in __init__
Feb 28 10:45:27 raspberrypi hass[2021]: self._update_attributes()
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/__init__.py", line 712, in _update_attributes
Feb 28 10:45:27 raspberrypi hass[2021]: label=['Power'])
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/__init__.py", line 763, in get_value
Feb 28 10:45:27 raspberrypi hass[2021]: return self._value_handler(method='get', **kwargs)
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zwave/__init__.py", line 731, in _value_handler
Feb 28 10:45:27 raspberrypi hass[2021]: class_id=cid, **kwargs).values())
Feb 28 10:45:27 raspberrypi hass[2021]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/openzwave-0.3.1-py3.4.egg/openzwave/node.py", line 440, in get_values
Feb 28 10:45:27 raspberrypi hass[2021]: for value in self.values:
Feb 28 10:45:27 raspberrypi hass[2021]: RuntimeError: dictionary changed size during iteration

Any luck ???

no luck yet :disappointed_relieved:

1 Like

Same problem after update to 0.39

I’m also having getting the same errormessages. First I run an upgrade from 0.38.
I then started from scratch with a blank sd-card and run the All in one installer on Raspberry Pi.
The errormessages are still present.
I’m using Aeon Z-stick V5 as my z-wave controller. I did not exclude my devices from the stick before reinstalling HA.

I am running the all-in-one version 0.39 I was attempting to update to 0.39.3 ,but I get the following errors. Any help with this?

Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/local/lib/python3.4/dist-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py”, line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py”, line 1064, in move_wheel_files
isolated=self.isolated,
File “/usr/local/lib/python3.4/dist-packages/pip/wheel.py”, line 345, in move_wheel_files
clobber(source, lib_dir, True)
File “/usr/local/lib/python3.4/dist-packages/pip/wheel.py”, line 316, in clobber
ensure_dir(destdir)
File “/usr/local/lib/python3.4/dist-packages/pip/utils/init.py”, line 83, in ensure_dir
os.makedirs(path)
File “/usr/lib/python3.4/os.py”, line 237, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.4/dist-packages/pytz-2016.10.dist-info’

Did you remember to activate the virtual environment before upgrading?

I did as far as i can remember

Ran in to this also. Found this on the all in one installer page.

UPGRADING

To upgrade the All-In-One setup manually:

Login to Raspberry Pi ssh pi@your_raspberry_pi_ip
Change to homeassistant user sudo su -s /bin/bash homeassistant
Change to virtual enviroment source /srv/homeassistant/homeassistant_venv/bin/activate
Update HA pip3 install --upgrade homeassistant
Type exit to logout the hass user and return to the pi user.

Hope this helps. I logged in as the user but also didn’t do the above.

I did a complete reinstall of the all in one and still get the same errors

I’m getting the same errors here, and also ocasionally hass fails to locate my living room light node when I restart. A further restart usually finds the node, but the errors still occur in the log regardless of whether the node is found or not.

I have no ideas atm either.