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

AMICI package import fails with v0.17.0 on mac #2075

Closed
dweindl opened this issue May 10, 2023 · 0 comments
Closed

AMICI package import fails with v0.17.0 on mac #2075

dweindl opened this issue May 10, 2023 · 0 comments
Assignees
Labels

Comments

@dweindl
Copy link
Member

dweindl commented May 10, 2023

KLU should have been linked statically, but wasn't. Not sure why this wasn't caught before... https://github.com/AMICI-dev/AMICI/actions/runs/4933241913/jobs/8817021755#step:7:1

Run python -c "from amici import _amici; print(_amici)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/amici/__init__.py", line 100, in <module>
    from . import amici
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/amici/amici.py", line 26, in <module>
    from . import _amici
ImportError: dlopen(/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/amici/_amici.cpython-310-darwin.so, 0x0002): Library not loaded: '@rpath/libklu.2.dylib'
  Referenced from: '/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/amici/_amici.cpython-310-darwin.so'
  Reason: tried: 'ThirdParty/SuiteSparse/lib/libklu.2.dylib' (no such file), '/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-y4qxt4xf/amici_ab3e5287c11240d8b9f2ec35dac0eda4/build/lib.macosx-11.7-x86_64-cpython-310/amici/lib/libklu.2.dylib' (no such file), 'ThirdParty/SuiteSparse/lib/libklu.2.dylib' (no such file), '/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-y4qxt4xf/amici_ab3e5287c11240d8b9f2ec35dac0eda4/build/lib.macosx-11.7-x86_64-cpython-310/amici/lib/libklu.2.dylib' (no such file), '/usr/local/lib/libklu.2.dylib' (no such file), '/usr/lib/libklu.2.dylib' (no such file)
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant