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

Error importing pip installed pinocchio 3.3.1 on macOS 15 Sequoia #2545

Closed
Brian-Acosta opened this issue Jan 6, 2025 · 4 comments
Closed

Comments

@Brian-Acosta
Copy link

Bug description

Program exits with a file not found error when importing pinocchio on macOS 15 with arm architecture and python 3.12 (The same error occurs using python 3.13).

Reproduction steps

in a macOS terminal:

/opt/homebrew/bin/python3.12 -m venv venv
source venv/bin/activate
pip install pin
python

Here's the python reproduction

Python 3.12.8 (main, Dec  3 2024, 18:42:41) [Clang 16.0.0 (clang-1600.0.26.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pinocchio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/brian/workspace/sandbox/cassie_pydrake_sanbox/venv/lib/python3.12/site-packages/cmeel.prefix/lib/python3.12/site-packages/pinocchio/__init__.py", line 19, in <module>
    from .pinocchio_pywrap_default import *
ImportError: dlopen(/Users/brian/workspace/sandbox/cassie_pydrake_sanbox/venv/lib/python3.12/site-packages/cmeel.prefix/lib/python3.12/site-packages/pinocchio/pinocchio_pywrap_default.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libboost_python312.dylib
  Referenced from: <F44C5C83-C9D3-3FFB-B714-31913516A8E3> /Users/brian/workspace/sandbox/cassie_pydrake_sanbox/venv/lib/python3.12/site-packages/cmeel.prefix/lib/python3.12/site-packages/pinocchio/pinocchio_pywrap_default.cpython-312-darwin.so
  Reason: tried: '/private/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/pip-build-env-h65ivoed/overlay/lib/python3.12/site-packages/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/pip-build-env-h65ivoed/overlay/lib/python3.12/site-packages/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/cmeel-t32qut7y/whl/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/cmeel-t32qut7y/whl/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/private/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/pip-build-env-h65ivoed/overlay/lib/python3.12/site-packages/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/pip-build-env-h65ivoed/overlay/lib/python3.12/site-packages/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/cmeel-t32qut7y/whl/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/cmeel-t32qut7y/whl/cmeel.prefix/lib/libboost_python312.dylib' (no such file), '/opt/homebrew/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libboost_python312.dylib' (no such file), '/opt/homebrew/lib/libboost_python312.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libboost_python312.dylib' (no such file)
  • OS: macOS 15
  • Pinocchio version: 3.3.1
@Brian-Acosta Brian-Acosta changed the title Error importing pin installed pinocchio 3.3.1 on macOS 15 Sequoia Error importing pip installed pinocchio 3.3.1 on macOS 15 Sequoia Jan 6, 2025
@jcarpent
Copy link
Contributor

jcarpent commented Jan 6, 2025

Thanks @Brian-Acosta for the quick report.
One quick fix is to rely on conda to install Pinocchio and use it with Python.

@nim65s
Copy link
Contributor

nim65s commented Jan 6, 2025

I'll fix this, thanks for the report

nim65s added a commit to nim65s/pinocchio that referenced this issue Jan 6, 2025
Re-apply stack-of-tasks#1908 which was
somehow forgottent during the v3 merge.

fix stack-of-tasks#2545
nim65s added a commit to cmake-wheel/pinocchio that referenced this issue Jan 6, 2025
Re-apply stack-of-tasks#1908 which was
somehow forgottent during the v3 merge.

fix stack-of-tasks#2545
@nim65s
Copy link
Contributor

nim65s commented Jan 6, 2025

This is fixed. A new binary release is building in https://github.com/cmake-wheel/pinocchio/actions/runs/12633297200

If you can't wait for this one, you can download a .whl from https://github.com/cmake-wheel/pinocchio/actions/runs/12631436545 which I used to test the fix provided in #2546

@Brian-Acosta
Copy link
Author

Thanks for the quick fix!

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

3 participants