0.36 (Docker): ZWave component can't find zwcfg.xsd anymore

Hi,

I just updated to the 0.36 docker image. After launching, the zwave component complained:

17-01-16 10:41:18 homeassistant.bootstrap: Error during setup of component zwave
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/bootstrap.py", line 151, in _async_setup_component
    None, component.setup, hass, config)
  File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:110600)
  File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
  File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
  File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/zwave/__init__.py", line 279, in setup
    CONF_CONFIG_PATH, default_zwave_config_path))
  File "/usr/local/lib/python3.5/site-packages/openzwave-0.3.1-py3.5.egg/openzwave/option.py", line 82, in __init__
    libopenzwave.PyOptions.__init__(self, config_path=config_path, user_path=user_path, cmd_line=cmd_line)
  File "src-lib/libopenzwave/libopenzwave.pyx", line 635, in libopenzwave.PyOptions.__init__ (src-lib/libopenzwave/libopenzwave.cpp:9386)
libopenzwave.LibZWaveException: "LibOpenZwave Generic Exception : Can't retrieve zwcfg.xsd from /usr/src/app/build/python-openzwave/openzwave/config/"
libopenzwave.LibZWaveException: "LibOpenZwave Generic Exception : Can't retrieve zwcfg.xsd from /usr/src/app/build/python-openzwave/openzwave/config/"

I fixed it by copying /usr/local/share/python-openzwave/config/zwcfg.xsd from inside the container to the /config directory and adding -v /home/hass/.homeassistant/zwcfg.xsd:/usr/src/app/build/python-openzwave/openzwave/config/zwcfg.xsd to the docker command line.

Apparently the file’s location was changed between 0.35 and 0.36.

Sebastian

1 Like