grizzlyRPI
Posts: 4
Joined: Thu Jan 09, 2014 9:52 am

Problems with python-openzwave

Thu Jan 09, 2014 9:59 am

Hi,

I'm trying to install python-openzwave on my new RPI - following procedure from this link:
http://bibi21000.gallet.info/index.php/ ... L_MAN.html

Unfortunately one of the last steps:
python setup-lib.py build

exits with:
pi@raspberrypi ~/python-openzwave $ python setup-lib.py build
running build
running build_py
package init file 'lib/__init__.py' not found (or not a regular file)
package init file 'lib/__init__.py' not found (or not a regular file)
running build_ext
cythoning lib/libopenzwave.pyx to lib/libopenzwave.cpp
building 'libopenzwave' extension
creating build
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/lib
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -Iopenzwave/cpp/build/linux -I/usr/include/python2.7 -c lib/libopenzwave.cpp -o build/temp.linux-armv6l-2.7/lib/libopenzwave.o
cc1plus: warning: command line option â-Wstrict-prototypesâ 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

Any ideas? The same procedure works fine on my PC with Ubuntu :-(


sl

grizzlyRPI
Posts: 4
Joined: Thu Jan 09, 2014 9:52 am

Re: Problems with python-openzwave

Fri Jan 10, 2014 9:36 am

According to suggestion of Stephen Smith (many thanks!) I changed line 225 of lib/libopenzwave.cpp
from
#include "vers.cpp"
to:
#include "vers.c" (which file I have in /openzwave/cpp/build/linux/vers.c)

Now I got following:
pi@raspberrypi ~/python-openzwave $ python setup-lib.py build
running build
running build_py
package init file 'lib/__init__.py' not found (or not a regular file)
package init file 'lib/__init__.py' not found (or not a regular file)
running build_ext
skipping 'lib/libopenzwave.cpp' Cython extension (up-to-date)
building 'libopenzwave' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -Iopenzwave/cpp/build/linux -I/usr/include/python2.7 -c lib/libopenzwave.cpp -o build/temp.linux-armv6l-2.7/lib/libopenzwave.o
cc1plus: warning: command line option â-Wstrict-prototypesâ is valid for Ada/C/ObjC but not for C++ [enabled by default]
lib/libopenzwave.cpp: In function âPyObject* __pyx_pf_12libopenzwave_9PyManager_12getOzwLibraryVersion(PyObject*, PyObject*)â:
lib/libopenzwave.cpp:5483:42: error: âozw_vers_majorâ was not declared in this scope
lib/libopenzwave.cpp:5485:42: error: âozw_vers_minorâ was not declared in this scope
lib/libopenzwave.cpp:5487:42: error: âozw_vers_revisionâ was not declared in this scope
lib/libopenzwave.cpp: In function âPyObject* __pyx_pf_12libopenzwave_9PyManager_25getPollIntensity(PyObject*, PyObject*)â:
lib/libopenzwave.cpp:6651:95: error: âclass OpenZWave::Managerâ has no member named âGetPollIntensityâ
error: command 'gcc' failed with exit status 1


sl

DjeFr
Posts: 1
Joined: Wed Jan 29, 2014 11:37 am

Re: Problems with python-openzwave

Wed Jan 29, 2014 11:44 am

Hello,
I'm having the same problem building python-openzwave. Did you finally found a way to build it?

andersab
Posts: 1
Joined: Thu Sep 11, 2014 9:18 pm

Re: Problems with python-openzwave

Thu Sep 11, 2014 9:21 pm

I'm interested in any solution here also. I am failing the same way. I found libopenzwave.so in the following the locations:
- /usr/local/lib
-/usr/lib/lib

Return to “Automation, sensing and robotics”