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:,
Collecting homeassistant-pyozw
  Using cached
Collecting Louie>=1.1 (from homeassistant-pyozw)
  Using cached
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-4NGwUu/Louie/", line 3, in <module>
        from louie import version
      File "louie/", line 1, in <module>
        from . import dispatcher, error, plugin, robustapply, saferef, sender, signal, version
      File "louie/", line 44
        f"Louie connects: {connects}\n"
    SyntaxError: invalid syntax

Command "python 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 Briefly, my solution was to use

pip3 install homeassistant-pyozw --user