Open Chris00 opened 4 months ago
Looks like #1554
Yes, that other issue looks similar (it lacks a bit of details to tell it is the very same).
Incidentally, making a symbolic link to libpython to target/debug/deps
(for debug builds obviously) solves the issue. Note that setting LD_LIBRARY_PATH=$CONDA_PREFIX/lib
(or setting DYLD_LIBRARY_PATH
on MacOSX) sort of solves the issue too but it may cause strange behaviors because there are many other libraries in $CONDA_PREFIX/lib
and you do not want those to be used instead of the system ones.
Since it seems that anaconda will not solve this issue anytime soon, shouldn't PyO3 attempt to work around it?
Bug Description
While correctly detected,
libpython*.dylib
is not found at runtime under miniconda.Steps to Reproduce
See the complete minimal code.
Backtrace
Your operating system and version
MacOS (Github runner) — also on Linux
Your Python version (
python --version
)Python 3.12
Your Rust version (
rustc --version
)rustc 1.78.0 (9b00956e5 2024-04-29)
Your PyO3 version
0.21.2
How did you install python? Did you use a virtualenv?
Anaconda
Additional Info
No response