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

Pinocchio does not work on a fresh python3.10 #2587

Open
tomsch420 opened this issue Feb 19, 2025 · 1 comment
Open

Pinocchio does not work on a fresh python3.10 #2587

tomsch420 opened this issue Feb 19, 2025 · 1 comment

Comments

@tomsch420
Copy link

Bug description

Greetings, i am having trouble using pinocchio with python3.10.
I made a new python3.10 virtual environment, updated pip and installed pinocchio. I could not import pinocchio.
I hope this helps.

Expected behavior

I expect to be able to import pinnocchio.

Reproduction steps

Steps to reproduce the behavior:

mkvirtualenv -p python3.10 pin-test
pip install -U pip
pip install pin
python -c "import pinocchio"

This results in the error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tom_sch/.virtualenvs/pin-test/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages/pinocchio/__init__.py", line 19, in <module>
    from .pinocchio_pywrap_default import *
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python38.so.1.71.0: undefined symbol: _Py_fopen

System

  • OS: Ubuntu 20.04
  • Pinocchio version: 3.4.0
@ManifoldFR
Copy link
Member

ManifoldFR commented Feb 19, 2025

Hey there,

If you check the linking error, it mentions a libboost_python38 - which is Boost.Python for Python 3.8. it seems like the Pinocchio module that Python is trying to import was made for Python 3.8 or that the interpreter is pulling the wrong Boost.Python. This means there's maybe another Boost.Python, than the one you need, on your library path or PYTHONPATH.

Are you sure the import is pulling in the right binaries? You use cmeel, do you have the boost.python cmeel installed?
You could debug this using importlib I think.

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