Installing Current version of Klampt on python 3.7 and Ubuntu 20.04 from source succeeds, but even after adding ODE, tinyXML and Assimp to LD_LIBRARY_PATH, importing klampt results in the following error:
>>> import klampt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/motion/miniconda3/envs/habitat/lib/python3.7/site-packages/Klampt-0.9.0-py3.7-linux-x86_64.egg/klampt/__init__.py", line 9, in <module>
from .robotsim import *
File "/home/motion/miniconda3/envs/habitat/lib/python3.7/site-packages/Klampt-0.9.0-py3.7-linux-x86_64.egg/klampt/robotsim.py", line 18, in <module>
from . import _robotsim
ImportError: /lib/x86_64-linux-gnu/libfreeimage.so.3: undefined symbol: _TIFFDataSize, version LIBTIFF_4.0
Installing Current version of Klampt on python 3.7 and Ubuntu 20.04 from source succeeds, but even after adding ODE, tinyXML and Assimp to LD_LIBRARY_PATH, importing klampt results in the following error:
This issue can be fixed following this bug report for libfreeimage: https://bugs.launchpad.net/savos/+bug/1979176
i.e.:
to update libfreeimage to a working version (3.18.0+ds2-7).
Further, installing Klampt on conda virtual environments from source requires following this tutorial to alter the LD_LIBRARY_PATH upon environment activation: https://stackoverflow.com/questions/46826497/conda-set-ld-library-path-for-env-only
In my case, setting env_vars.sh in activate.d to
Solved the issue.
Hope this helps anyone else having similar issues.