-
Notifications
You must be signed in to change notification settings - Fork 349
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
libboost not found while installing on Jetson Orin #1960
Comments
a rebuild is in progress, I'll keep you updated when it's Ok, but it should require some hours. |
@Windson9 An alternative solution is to rely on conda. |
The issue is I cannot use Pytorch with Cuda enabled as there is no whl package for Jetson orin in conda environment. So I have to use either virtual env or local setup |
meanwhile, you may try to downgrade boost: |
The error still persist after installing cmeel-boost < 1.82.0. (virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip install "cmeel-boost < 1.82.0" |
Hi, This should be fixed. Can you confirm on your sides, @Windson9 & @stephane-caron ? |
Thx, that solved the problem for >= Py3.8. Sadly a new problem appeared for 3.7 (if you still like to support it):
|
@nim65s The issue is gone for Unfortunately I confirm the Python 3.7 issue with |
@stephane-caron yes, I had to drop python 3.7 support a bit ahead of my initial schedule discussed in #1931 , as this already did take waaay to long to release and fix everything. I'll try to at least restore the previous state of the packages for 3.7, but I don't have a lot of time at the moment. |
Gotcha. Yes, that would be nice for 3.7 users to still be able to install a legacy version of the software. (As far as Pink is concerned it will just follow your move and set 3.8 as the minimum Python version for the next release.) |
Potentially not the same issue but I get the following import error with Python 3.10:
I'm not sure it is related to this issue or should be moved to a separate one. Feel free to move things around. |
@stephane-caron : I can't reproduce that one. FROM ubuntu:22.04
ADD https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh /install-conda
RUN bash /install-conda -b
RUN eval "$(/root/anaconda3/bin/conda shell.bash hook)" \
&& conda init
CMD eval "$(/root/anaconda3/bin/conda shell.bash hook)" \
&& conda create -n test4 python=3.10 -y \
&& conda activate test4 \
&& pip install pin \
&& python -c "import pinocchio; print(pinocchio.__file__)" correctly shows:
I made another test with: FROM continuumio/miniconda3
RUN conda create -n test4 python=3.10 -y
SHELL ["conda", "run", "-n", "test4", "/bin/bash", "-c"]
CMD pip install pin && python -c "import pinocchio; print(pinocchio.__file__)" correctly shows:
Am I messing with something here ? |
Hmm, that's curious. Suspecting a cache issue I tried
But it yields the same error. |
It seems that importing Pinocchio looks for Boost::Python in Going to $ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep boost_python
libboost_python310.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_python310.so.1.82.0 (0x00007f77f46c3000)
libboost_python38.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0 (0x00007f77f3c97000) So something there is linked against Python 3.8? (The default Python version on my system.) There are a couple of other py38 boost libraries in there: $ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep 1.71
libboost_python38.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_python38.so.1.71.0 (0x00007fd721488000)
libboost_filesystem.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 (0x00007fd721468000)
libboost_system.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_system.so.1.71.0 (0x00007fd721463000)
libboost_serialization.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_serialization.so.1.71.0 (0x00007fd72141f000)
libboost_atomic.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_atomic.so.1.82.0 (0x00007fd721371000)
libboost_chrono.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_chrono.so.1.71.0 (0x00007fd720716000) For instance the same happens with $ ldd pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so | grep boost_filesystem
libboost_filesystem.so.1.82.0 => /home/scaron/.micromamba/envs/test4bis/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/./../../../../lib/libboost_filesystem.so.1.82.0 (0x00007f7bfd79f000)
libboost_filesystem.so.1.71.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 (0x00007f7bfcd77000) The operating system here is Ubuntu 20.04. |
@nim65s I don't see this error in GitHub Actions, so I'm not sure what's going on. Perhaps the issue can be reproduced with: FROM ubuntu:20.04 Otherwise I'm concerned something else would be causing this on my system. I checked again with |
@stephane-caron maybe something in your env variables or in your /etc/ld.so.conf ? maybe with a full |
Fixed for Python 3.7: Pinocchio 2.6.18 will be the latest available version. @Windson9 @stephane-caron : I'll close this. If you still have issues, don't hesitate to re-open if you think this is the same, or open another one :) |
Will do, thanks for following up. |
@nim65s I have same error when run in virtual enviroment. I tried with python 3.8.10 and python 3.9.16 and both version have same issue. |
@haivuvan : you need to upgrade your packages. Maybe something like:
After that, if you still have issues, please post the result of |
@nim65s, after upgrade package the issue still occur. |
you still have eigenpy v2.9.2, while the latest version should be v3.1.0. And this version is available both for x86_64 and aarch64 as a manylinux_2_28. What OS are you running ? Does Did you ever try to install eigenpy from another source on this machine ? |
@nim65s I use eigenpy v2.9.2 because later version remove function that I want to use. |
This is a totally different issue then. You told me you upgraded, while you're actively trying not to upgrade one package. This is really not nice for the time I spend helping you, and this is not nice for every other people subscribed to this issue getting notifications about your issue which has nothing to to with them. Anyway, we have a XY problem here, please discuss about that eigenpy function, I'm not going to spend time finding a set of versions that workaround your initial problem until we agree this is the right option or the only one. NB: Pinning a package is fine, but you must pin also pin all its dependencies, as we can't ensure every version of something will work with every version of everything else, and we can't provide pre-built binaries for such cases. |
Hello. Thanks for great work. I am trying to install Pin on a Jetson Orin but facing issues where I am not able to import the library. Below are some logs for reference. I am using Python3.8 and I tried to follow the steps mentioned in similar issues but no luck so far.
orin-2@orin-2:/mayank/megapose6d$ python3 -m virtualenv -p python3 virtual_env
created virtual environment CPython3.8.10.final.0-64 in 261ms
creator CPython3Posix(dest=/home/orin-2/mayank/megapose6d/virtual_env, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/orin-2/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
orin-2@orin-2:/mayank/megapose6d$ source virtual_env/bin/activate
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python -c "import pinocchio"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pinocchio'
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip install -U pip
Collecting pip
Using cached pip-23.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-23.1.2
(virtual_env) orin-2@orin-2:~/mayank/megapose6d$ pip install pin --no-cache-dir
Collecting pin
Downloading pin-2.6.18-0-cp38-cp38-manylinux_2_28_aarch64.whl (5.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 11.4 MB/s eta 0:00:00
Collecting cmeel (from pin)
Downloading cmeel-0.43.1-py3-none-any.whl (16 kB)
Collecting hpp-fcl (from pin)
Downloading hpp_fcl-2.3.2-0-cp38-cp38-manylinux_2_28_aarch64.whl (2.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 12.0 MB/s eta 0:00:00
Collecting cmeel-urdfdom (from pin)
Downloading cmeel_urdfdom-3.1.0.2-0-py3-none-manylinux_2_17_aarch64.whl (430 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 430.3/430.3 kB 13.7 MB/s eta 0:00:00
Collecting cmeel-console-bridge (from pin)
Downloading cmeel_console_bridge-1.0.2.1-2-cp38-cp38-manylinux_2_28_aarch64.whl (24 kB)
Collecting cmeel-tinyxml (from pin)
Downloading cmeel_tinyxml-2.6.2.1-2-cp38-cp38-manylinux_2_28_aarch64.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.9/61.9 kB 82.2 MB/s eta 0:00:00
Collecting tomli<3.0.0,>=2.0.1 (from cmeel->pin)
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting cmeel-assimp<6 (from hpp-fcl->pin)
Downloading cmeel_assimp-5.2.5-10-py3-none-manylinux_2_17_aarch64.whl (12.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 11.7 MB/s eta 0:00:00
Collecting cmeel-octomap<2 (from hpp-fcl->pin)
Downloading cmeel_octomap-1.9.8.1-2-cp38-cp38-manylinux_2_28_aarch64.whl (672 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 672.7/672.7 kB 12.7 MB/s eta 0:00:00
Collecting eigenpy<4 (from hpp-fcl->pin)
Downloading eigenpy-3.0.0-7-cp38-cp38-manylinux_2_28_aarch64.whl (2.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 11.8 MB/s eta 0:00:00
Collecting cmeel-boost<1.83.0 (from eigenpy<4->hpp-fcl->pin)
Downloading cmeel_boost-1.82.0-0-cp38-cp38-manylinux_2_28_aarch64.whl (34.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.4/34.4 MB 11.7 MB/s eta 0:00:00
Collecting numpy<1.25,>=1.23 (from cmeel-boost<1.83.0->eigenpy<4->hpp-fcl->pin)
Downloading numpy-1.24.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 11.7 MB/s eta 0:00:00
Installing collected packages: tomli, numpy, cmeel, cmeel-urdfdom, cmeel-tinyxml, cmeel-octomap, cmeel-console-bridge, cmeel-boost, cmeel-assimp, eigenpy, hpp-fcl, pin
Successfully installed cmeel-0.43.1 cmeel-assimp-5.2.5 cmeel-boost-1.82.0 cmeel-console-bridge-1.0.2.1 cmeel-octomap-1.9.8.1 cmeel-tinyxml-2.6.2.1 cmeel-urdfdom-3.1.0.2 eigenpy-3.0.0 hpp-fcl-2.3.2 numpy-1.24.3 pin-2.6.18 tomli-2.0.1
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python
Python 3.8.10 (default, Mar 13 2023, 10:26:41)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import pinocchio
Traceback (most recent call last):
File "", line 1, in
File "/home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/cmeel.prefix/lib/python3.8/site-packages/pinocchio/init.py", line 6, in
from .pinocchio_pywrap import *
ImportError: libboost_python38.so.1.81.0: cannot open shared object file: No such file or directory
quit()
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ pip --version
pip 23.1.2 from /home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/pip (python 3.8)
(virtual_env) orin-2@orin-2:/mayank/megapose6d$ python3 -c "import hppfcl;print(hppfcl.version)"
Traceback (most recent call last):
File "", line 1, in
File "/home/orin-2/mayank/megapose6d/virtual_env/lib/python3.8/site-packages/cmeel.prefix/lib/python3.8/site-packages/hppfcl/init.py", line 34, in
from .hppfcl import *
ImportError: libboost_python38.so.1.81.0: cannot open shared object file: No such file or directory
The text was updated successfully, but these errors were encountered: