wkentaro/octomap-python

ImportError: octomap.so: undefined symbol: _ZN7octomap14AbstractOcTree4readERKSs

rhidra opened this issue · 2 comments

Hello,

I am trying to install the octomap-python package to use it with the ROS Octomap node.
I did pip2 install octomap-python to install the package.

I previously ran into the same issue as #1 which I fixed by doing sudo apt install libdynamicedt3d1.8.

Now, when doing import octomap in python I get :

$ python2 -c 'import octomap'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /home/rhidra/.local/lib/python2.7/site-packages/octomap.so: undefined symbol: _ZN7octomap14AbstractOcTree4readERKSs

I don't know what to do. Should I link the C++ library manually somehow ?

Thank you for helping me !

I fixed the problem by cloning the repo, building and installing it. I think my problem was a conflict between python 3 and 2. Since I am using ROS I have to use python 2, but the lib was correctly installed for python 3.

git clone --recursive https://github.com/wkentaro/octomap-python.git
cd octomap-python
python2 setup.py build
python2 setup.py install

Then python2 -c 'import octomap' should be working.

Had same issue, installing with:
pip install octomap-python --no-binary octomap-python
Fixed the problem on my end
(Ubuntu 18.04 in a VM running on windows)