Hassbian 1.23 and python_openzwave install failed

Hi. Hope someone can help!

python_openzwave fails to install automatically on Hassbian v1.23.

Install process:

  1. I flashed hassbian 1.23 to the card and did the initial startup, home assistant launches successfully
  2. sudo apt-get update, then sudo apt-get upgrade
  3. Gave homeassistant user access to the z-stick:
# If Home Assistant (`hass`) runs with another user (e.g. *homeassistant* on Hassbian) give access to the stick with:
$ sudo usermod -a -G dialout homeassistant
  1. Added zwave to config and checked that the stick is ttyACM0:
zwave:
  usb_path: /dev/ttyACM0
  1. Restarted home assistant and got the following error in log:
2017-05-25 09:04:47 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-05-25 09:09:08 ERROR (Thread-11) [homeassistant.util.package] Unable to install package python_openzwave==0.4.0.31: Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cz1ux4kv/python-openzwave/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ng5wxiyb-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.4/python-openzwave --home=/tmp/tmp2pgr3a3_" failed with error code 1 in /tmp/pip-build-cz1ux4kv/python-openzwave/
2017-05-25 09:09:08 ERROR (MainThread) [homeassistant.setup] Not initializing zwave because could not install dependency python_openzwave==0.4.0.31
2017-05-25 09:09:08 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Could not install all requirements.

Anybody know whats wrong? The automatic installation of openzwave obviously failed.

EDIT/SOLVED:

I forgot to install libudev-dev before step 4 above!

sudo apt-get install libudev-dev

Thank you, this helped me installing python_openzwave on my Home Assistant installation which is on a Ubuntu box (with Python virtualenv).

(homeassistant) homeassistant@mistik:~$ pip3 install python_openzwave
Collecting python_openzwave
  Using cached python_openzwave-0.4.0.35.zip
Requirement already satisfied: six in ./homeassistant/lib/python3.5/site-packages (from python_openzwave)
Requirement already satisfied: PyDispatcher>=2.0.5 in ./homeassistant/lib/python3.5/site-packages (from python_openzwave)
Installing collected packages: python-openzwave
  Running setup.py install for python-openzwave ... done
Successfully installed python-openzwave-0.4.0.35
1 Like