Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: octomap.so: undefined symbol: _ZN7octomap14AbstractOcTree4readERKSs #5

Open
rhidra opened this issue Jul 27, 2020 · 2 comments

Comments

@rhidra
Copy link

rhidra commented Jul 27, 2020

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 !

@rhidra
Copy link
Author

rhidra commented Jul 28, 2020

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.

@krishk16
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants