You are here: Home AutomationOpenzwave vs python : reloaded

Openzwave vs python : reloaded

zwave iconYou are trying to use openzwave with python ? Me too :)
Here are some informations on how I did it and some patches. on how to do it :)
This a major update of my old how-to.




Update : the documentation is now include in sources. Look here to get the last installation instructions.


I try py-openzwave, I patch it and I fork it. Here is the new way to install python-openzwave (it is it's new name now).

Ubuntu users can use my packages to install python-openzwave in a simplest way.

You need mercurial to download python-openzwave and svn to download openzwave sources. You also need the common compiling tools (make, gcc, ...), the udev developpement headers and sphinx to generate the documentation. Look at your distribution documentation to install them.

hg clone

Get the last release of openzawe :


You are now ready to run the install command. It will download openzwave and build it, build python-openzwave and generate the API documentation :


If everything went fine, install the python module as root :

sudo ./

Read the docs and developp :)

For more information look at the python-openzwave developpement site :


+1 #8 bibi21000 2014-01-25 20:23
Ask for support on python-openzwav e in project's issues or discussion group.
0 #7 slawek 2014-01-09 16:45
python-openzwav e on Raspberry
one of the last steps:
python build

exits with:
cc1plus: warning: command line option â-Wstrict-proto typesâ is valid for Ada/C/ObjC but not for C++ [enabled by default]
lib/libopenzwave.cpp:225:20: fatal error: vers.cpp: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
0 #6 slawek 2014-01-09 16:32
on Raspberry:

creating build
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/lib
gcc -pthread -fno-strict-ali asing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-protot ypes -fPIC -Iopenzwave/cpp /src -Iopenzwave/cpp /src/value_classes -Iopenzwave/cpp /src/platform -Iopenzwave/cpp /build/linux -I/usr/include/ python2.7 -c lib/libopenzwav e.cpp -o build/temp.linux-armv6l-2.7/lib/libopenzwave.o
cc1plus: warning: command line option â-Wstrict-protot ypesâ is valid for Ada/C/ObjC but not for C++ [enabled by default]
lib/libopenzwav e.cpp:225:20: fatal error: vers.cpp: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
0 #5 Wylie 2012-10-26 02:25
I found your library today and have been playing with it. It works well but I am still a little lost in how to take advantage of callback notifications etc. It would be great to see a few more examples.
0 #4 bibi21000 2012-10-23 21:43
Hi all,
I've updated the build scripts. Now the process should run correctly on every computer.
Let me know if it doesn't.
0 #3 bibi21000 2012-10-12 22:04
Quoting Pradeep:
Can you help me ?

Some users report the same error. I will modify the actual compile process in a few days.
But you can try to use the to build the libopenzwave.
Run the compile script and after, try :
python build

sudo python install
to install it.

Hope this help
0 #2 Pradeep 2012-10-10 15:18

I have this error when i try to compile:

running build
running build_py
package init file 'lib/__init__.p y' not found (or not a regular file)
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/openzwa
gcc: lib/libopenzwav e.c: Aucun fichier ou dossier de ce type
gcc: no input files
error: command 'gcc' failed with exit status 1

Can you help me ?
0 #1 beardy jesse 2012-10-03 10:08
Hi mate,

I've been following the progression of open-zwave with interest but have been struggling with how to install it - even following the recent development of the deb package. So thank you for hosting it in your repository and including a how-to. Unfortunately I've found this while at work and hence can't try it straight away, but will let you know how I get on.


Add comment

Security code

Free business joomla templates