Closed candyriver closed 1 year ago
Hi @candyriver,
This might be related to a corrupted installation procedure. Can you provide more details on how you have installed Crocoddyl? Please read again the installation instructions.
I just follow the installation instructions and run the following command in the terminal:
pip install --user crocoddyl
@nim65s is aware with pip
installation details. He might need further details to understand your situation.
@candyriver Conda might be your friend conda install -c conda-forge crocoddyl
.
@candyriver Conda might be your friend
conda install -c conda-forge crocoddyl
.
Thanks for your reply! But sadly it didn't help.
After testing with Python 3.6, the error no longer occurred. This suggests that the issue only affects Python 3.10. I carefully reviewed the installation instructions available on https://github.com/loco-3d/crocoddyl/tree/devel and noticed that in the section labeled "From Debian/Ubuntu packages, with robotpkg", it instructs to set the PYTHONPATH environment variable as follows:
export PYTHONPATH=/opt/openrobots/lib/python3.10/site-packages:$PYTHONPATH
However, upon running apt-cache search robotpkg-py3*, I was unable to find a version of crocoddyl that is compatible with Python 3.10. Upon further investigation, I discovered that the issue is likely caused by the operating system being Ubuntu 18.04.
Maybe the issue could be closed.
@nim65s -- could you update the readme file before releasing the new version of Crocoddyl?
@candyriver : we offer multiple installation options. From what I can see here, you tried 2 different:
pip install crocoddyl
→ Those packages require python >= 3.7, and the crocoddyl one might not be working until #1128 is outapt install robotpkg-py3*-crocoddyl
→ Those packages require using the python3
provided by your Debian / Ubuntu installation, so in your 18.04 case only 3.6 will work@jcarpent also provided a third option through conda. I do not know why this one didn't work for you.
@nim65s Thanks for your attention! Although the OS system is Ubuntu 18.04, I am using the latest conda environment, so my Python version is 3.10. However, I am still unsure why 'pip install --user crocoddyl' or 'conda install -c conda-forge crocoddyl' did not work for me. It's possible that these methods rely on the system installation, which may explain the issue.
To resolve the error message stating 'ImportError: libboost_chrono.so.1.80.0: cannot open shared object file: No such file or directory', I manually compiled and installed boost_1_80_0. However, this led to another error.
if you are in a conda environment, deb packages installed with apt
can't work.
Both pip and conda packages should work, and shouldn't rely on system stuff, but at the moment I think pip wheels are broken for crocoddyl, I'll fix this asap.
Closing this issue as @candyriver find a way to install Crocoddyl. Thanks for providing support, @nim65s and @jcarpent!
I am new here and the errors are: