Cannot install pyozw

I am trying to install the z-wave integration but its not working. I’m on a RP3+ running Raspbian buster. Since I could not install it via the browser app, I tried to install it directly, again, without success. Here are the error messages:

(homeassistant) pi@PrtSrvr:/srv/homeassistant $ sudo pip install homeassistant-pyozw
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant-pyozw
  Using cached https://files.pythonhosted.org/packages/10/19/e0d934ab6b7f02d1bb7a2e6aa8c9d311357050c669264ecf598c8ea9b9bc/homeassistant_pyozw-0.1.8.zip
Collecting Louie>=1.1 (from homeassistant-pyozw)
  Using cached https://files.pythonhosted.org/packages/f2/f8/f9dfd97003f1c120dca1ed4dc9e3e16b74b583ce5bcb2d9b013142b6bee2/Louie-2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-4NGwUu/Louie/setup.py", line 3, in <module>
        from louie import version
      File "louie/__init__.py", line 1, in <module>
        from . import dispatcher, error, plugin, robustapply, saferef, sender, signal, version
      File "louie/dispatcher.py", line 44
        f"Louie connects: {connects}\n"
        ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4NGwUu/Louie/

Any suggestions to correct this will be greatly appreciated.

Try this: sudo apt-get install libudev-dev and then pip install pyozw You shouldn’t need sudo to install pip packages.

I was having a similar problem and found a solution at https://stackoverflow.com/questions/52949531/could-not-install-packages-due-to-an-environmenterror-errno-13. Briefly, my solution was to use

pip3 install homeassistant-pyozw --user