Open
Description
I use Conda environment to manage Python versions and dependencies. When I build MeTTa REPL under Conda and try to run it after the build I see the following error:
$ ./target/debug/metta
./target/debug/metta: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
PyO3 compile against and uses absolutely correct version of the Python library. I don't see any inconsistency here.
According to PyO3/pyo3#1576 when using PyO3 app under Python env one need to add the path to the Python library into LD_LIBRARY_PATH
. This kind of works but breaks other executables because lib
directory in Conda env contains other libraries which overrides system library loading paths.
Steps to reproduce (Conda is expected to be installed):
conda create -n test python=3.7
conda activate test
cd repl
cargo run --features python
Activity