Closed SichangHe closed 2 years ago
The libpython3.8.dylib
file is here:
fd libpython3.8.dylib (base)
miniconda3/lib/libpython3.8.dylib
miniconda3/pkgs/python-3.8.11-hbdb9e5c_5/lib/libpython3.8.dylib
miniconda3/pkgs/python-3.8.11-h35b60ff_4_cpython/lib/libpython3.8.dylib
It seems like
inline-python
is the library that failed to compile, and the reason is that rustc cannot find alibpython3.8.dylib
file.
Finding and linking the Python dynamic library is done by PyO3. If it can't find Python on your computer even though you have installed it, that's a problem with that library: https://github.com/PyO3/pyo3
Does this crate require nightly? I see it specified nightly in documentations of some previous versions, but not in 0.8.0.
Yes. Looks like we accidentally removed the notice about needing nightly when we removed the notice about the no longer needed proc_macro_hygiene
feature.
Solution I used is to remove Conda. See the post on PyO3 for details.
The error
I was trying out this crate and pasted in the example code. It failed to build:
It seems like
inline-python
is the library that failed to compile, and the reason is that rustc cannot find alibpython3.8.dylib
file.my python3
Btw
I am using nightly because rust stable refused to compile:
Does this crate require nightly? I see it specified nightly in documentations of some previous versions, but not in
0.8.0
.