Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z-Wave fresh installation fail #7327

Closed
master-kenobi opened this issue Apr 27, 2017 · 6 comments
Closed

Z-Wave fresh installation fail #7327

master-kenobi opened this issue Apr 27, 2017 · 6 comments

Comments

@master-kenobi
Copy link

Home Assistant release (hass --version): 0.43.1

Python release (python3 --version): 3.4

Component/platform: zwave

Description of problem:
I did a fresh installation of HA on my RPi3. When I wanted to install Z-Wave as per this guide, it failed at step git checkout python3. It gives this error...

error: pathspec 'python3' did not match any file(s) known to git.

so I ignore it and continue on to PYTHON_EXEC=$(which python3) make build and sudo PYTHON_EXEC=$(which python3) make install.

When I restart my HA, I see this in the frontend.

fireshot capture 10 - home assistant - http___192 168 1 220_8123_states

In the log, it shows...

ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/setup.py", line 192, in _async_setup_component
    None, component.setup, hass, processed_config)
  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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 253, in setup
    CONF_CONFIG_PATH, default_zwave_config_path))
  File "/usr/local/lib/python3.4/dist-packages/openzwave-0.4.0.31-py3.4.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 676, in libopenzwave.PyOptions.__init__ (src-lib/libopenzwave/libopenzwave.cpp:10136)
libopenzwave.LibZWaveException: "LibOpenZwave Generic Exception : Can't find config directory /usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config"

I browse to /usr/local/lib/python3.4/dist-packages/ and true enough, libopenzwave-0.3.1-py3.4-linux-armv7l.egg directory is missing.

Please help.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):

Additional info:

@peterudo
Copy link

peterudo commented Apr 28, 2017

It looks like python-openzwave (https://github.com/OpenZWave/python-openzwave) removed the python3 branch. I'm not sure why.

Maybe you can build it from the master branch. I think someone from the team should shed som light on this.

@peterudo
Copy link

Version 0.4+ will be installed using pip. I just tried using it with Home Assistant, and it seemed to work. Probably shouldn't do it though, as they say: "0.4.0.x versions are for testers only. Don't use it in a production environment !!!" (https://github.com/OpenZWave/python-openzwave#python-openzwave-040-is-coming-).

@danichispa
Copy link

I had to reinstall all system again, and found same issue. As @rudolfrck said, now python_openzwave has to be installed through pip ( pip3 install python_openzwave ), and the config path on HA config (on my system at least ) is on /usr/local/lib/python3.5/dist-packages/python_openzwave/ozw_config/

@CoalaJoe
Copy link

The openzwave script has to be updated..

@CoalaJoe
Copy link

Got it to work when using this path on raspbian:
image

@JshWright
Copy link
Contributor

As some folks have mentioned, with the current version of HA and python-openzwave, you have to specify the config path.

This has been addressed in the dev version with the merge of #7415 (which will ship with the 0.45 release, as the 0.44 release is frozen at this point).

@home-assistant home-assistant locked and limited conversation to collaborators Aug 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants