MeshLib icon indicating copy to clipboard operation
MeshLib copied to clipboard

ImportError: libpython3.11.so.1.0: cannot open shared object file: No such file or directory

Open SimonRelu opened this issue 1 year ago • 1 comments

I get the following error when trying to import meshlib:

ImportError: libpython3.11.so.1.0: cannot open shared object file: No such file or directory

import meshlib works but import meshlib.mrmeshpy or import meshlib.mrmeshnumpy causes the error.

I've build python from source on ubuntu 22.04 with the following commands:

curl -SL https://www.python.org/ftp/python/3.11.8/Python-3.11.8.tgz | tar -xzC /opt/
cd /opt/Python-3.11.8
./configure --enable-optimizations && make && make altinstall

Any idea what the issue is? Other C++ packages like numpy work fine

SimonRelu avatar Mar 18 '24 15:03 SimonRelu

The MeshLib's Python module is dynamically linked with libpython. I ran your commands and have found only the static library (libpython3.11.a). You might tune your build configuration to build the shared library version as well.

oitel avatar Mar 18 '24 18:03 oitel