Core: 0.91.0 zwave install failure

Created on 4 Apr 2019  ·  20Comments  ·  Source: home-assistant/core

Home Assistant release with the issue:
0.91.0

Last working Home Assistant release (if known):
0.90.2

Operating environment (Hass.io/Docker/Windows/etc.):
Rasbian, in a virtual environment on RPi 3B

Component/platform:
zwave

ERROR (Thread-10) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.3: Failed building wheel for homeassistant-pyozw
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6hyl8pj0/homeassistant-pyozw/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-record-1vlq0cbt/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/homeassistant-pyozw" failed with error code 1 in /tmp/pip-install-6hyl8pj0/homeassistant-pyozw/
2019-04-04 16:24:04 ERROR (MainThread) [homeassistant.requirements] Not initializing zwave because could not install requirement homeassistant-pyozw==0.1.3
2019-04-04 16:24:05 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Could not install all requirements
pip3 install homeassistant-ptozw==0.1.3

Failed building wheel for homeassistant-pyozw
zwave need-more-information stale

Most helpful comment

I'm running into this issue with Travis (https://travis-ci.org ) now when attempting to have it verify my config.

.travis.yaml
`language: python
python:

  • "3.5"
    before_install:
  • mv not_secrets.yaml config/secrets.yaml
    install:
  • pip3 install homeassistant
    script:
  • hass -c ./config/ --script check_config`

and travis error

Failed config
General Errors:
- Unable to install all requirements: homeassistant-pyozw==0.1.4, pydispatcher==2.0.5

All 20 comments

Please make sure to fill out the issue template, everything requested is important to help out.

Hey there @home-assistant/z-wave, mind taking a look at this issue as its been labeled with a integration (zwave) you are listed as a codeowner for? Thanks!

install error file attached
errors.txt

HA 0.91.0
Raspbian Stretch, in a virtual environment on RPI 3B+
Brand new installation (to test)

ERROR (Thread-8) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.3: Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-761qfhyn/homeassistant-pyozw/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-wl2yw6u8-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/homeassistant-pyozw" failed with error code 1 in /tmp/pip-build-761qfhyn/homeassistant-pyozw/

hassio 0.91.0
RPi 3B+
new installation
same problem
Unable to install package homeassistant-pyozw==0.1.3

had the same issue, found a solution here
Run
sudo apt-get install libudev-dev
then
pip3 install homeassistant-pyozw==0.1.3
but I'm now running into another issue (2019-04-07 22:27:06.902 Detail, contrlr, Notification: DriverFailed)

yep - thanks - that worked!

Worked for me too

Thanks.

On Sun, Apr 7, 2019, 5:03 PM oldfart101 notifications@github.com wrote:

yep - thanks - that worked!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/22732#issuecomment-480633750,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahh9ucW9s7NcDpTHRwEK-C5MMCHDReL_ks5vemtGgaJpZM4cdQAi
.

the document system
https://www.home-assistant.io/docs/z-wave/installation
points to this

Thanks for the link @oldfart101 . I installed the packages requested and was able to update now. Maybe worth mentioning in the release notes next to the other breaking changes?

I've install udev, but when I attempt to install I get permission errors with zcombo.xml. Anybody else seeing this?

I'm having a similar issue. pyozw fails to install. Just hangs. I tried installing the packages mentioned. Does libudev-dev have to be installed while in the virtual env? That may be the piece I'm missing?

I didn't have to do that.

On Mon, Apr 15, 2019, 7:15 PM ragd011 notifications@github.com wrote:

I'm having a similar issue. pyozw fails to install. Just hangs. I tried
installing the packages mentioned. Does libudev-dev have to be installed
while in the virtual env? That may be the piece I'm missing?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/22732#issuecomment-483464149,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahh9uflGoxDONP71QuyXj6BPBiApLf9Tks5vhRYIgaJpZM4cdQAi
.

@ragd011 - My problem ended up being related to some weird permissions on files in the openzwave specifically the python_openzwave directory in by venv's packages directory.

~/homeassistant/lib/python3.5/site-packages/python_openzwave/ozw_config

I sudo rm'd that directory and reinstalled and I was able to get it working. I think I just may have been in a weird state when I tried to install it the first time and the file permissions didn't get set correctly.

pip install homeassistant_openzwave --verbose should hopefully get you pointed in the right direction.

Got the same issues trying to update to 0.92.0.
Permissions for the openzwave directory looked right, homeassistant:homeassistant.

I had to install libudev-dev, after also having to install libffi-dev to fix another broken wheel.
FYI, It took almost 20 minutes just for the pyozw to finish installing on my pi.

Is there any way to be notified when there's a new OS dependency? Like a Meta package or anything? It would be nice if those new dependencies were at the top of the release info.

I'm running into this issue with Travis (https://travis-ci.org ) now when attempting to have it verify my config.

.travis.yaml
`language: python
python:

  • "3.5"
    before_install:
  • mv not_secrets.yaml config/secrets.yaml
    install:
  • pip3 install homeassistant
    script:
  • hass -c ./config/ --script check_config`

and travis error

Failed config
General Errors:
- Unable to install all requirements: homeassistant-pyozw==0.1.4, pydispatcher==2.0.5

Like @Chaotic I'm seeing my travis script fail due to this error. Using 0.94.1

Like @Chaotic I'm seeing my travis script fail due to this error. Using 0.94.1

there is a fix for that here

Thanks @Chaotic I found that post after I replied above. I did think the workaround to add the extra package was a temporary thing, until something updated HA's requirements?

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Elmardus picture Elmardus  ·  3Comments

moskovskiy82 picture moskovskiy82  ·  3Comments

kirichkov picture kirichkov  ·  3Comments

Konstigt picture Konstigt  ·  3Comments

flsabourin picture flsabourin  ·  3Comments