Python3 build - undefined symbol

81 views
Skip to first unread message

Jorge Rivera Gutiérrez

unread,
Jan 23, 2017, 1:05:13 PM1/23/17
to python-openzwave-discuss
Hello,

I've been trying to build python-openzwave with the intention of using it with Home Assistant (https://home-assistant.io/). 
I'm trying to run it temporarily on my PC (Ubuntu 16.04). 
I have a Z-Wave Bridge Controller from Sigma (UZB2-U-BRG) and I have successfully detected nodes uisng MinOZW. 




Home Assistant is a python3 app, so they give instructions to build the wrapper using python3 (https://home-assistant.io/getting-started/z-wave/). 
I tried following their instructions. The build process went smoothly, except for some warnings. 
Here are my versions:

$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 

$ dpkg -l cython3
...
ii  cython3                            0.23.4-0ubuntu5        amd64                  C-Extensions for Python 3

However, when I try to run the program it fails loading the z-wave component. I tracked it down to the import of libopenzwave. 
I tried to import it manually and here's the error I get:

jrivera@bohr:~/work/python-openzwave-0.3.1/build/lib.linux-x86_64-3.5$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libopenzwave
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/jrivera/work/python-openzwave-0.3.1/build/lib.linux-x86_64-3.5/libopenzwave.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN9OpenZWave7Manager16GetNodeProductIdB5cxx11Ejh
>>> 

This is my try from the 0.3.1 archive. I tried from the python3 branch and same happens. Notice that it is trying to load the lib from the local dir, so it is using my fresh build :)


Any suggestions?

Thanks,

Jorge Rivera

Reply all
Reply to author
Forward
0 new messages