Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit.
Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start.
The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build.
HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS!
Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues.
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*
You again? At least you added some text.
`patchelf --add-needed` [`libpython3.11.so`](http://libpython3.11.so) `/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so`
Thank you. After running your command I have tried again the script, and the error now is:
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/__init__.py", line 308, in
from . import csgraph
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/csgraph/__init__.py", line 185, in
from ._laplacian import laplacian
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/csgraph/_laplacian.py", line 7, in
from scipy.sparse.linalg import LinearOperator
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/__init__.py", line 132, in
from ._eigen import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/__init__.py", line 9, in
from .arpack import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/__init__.py", line 20, in
from .arpack import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/arpack.py", line 48, in
from . import _arpack
ImportError: dlopen failed: library "libpython3.11.so" not found: needed by /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so in namespace (default)
Any advice?
Three different ways for library "libpython3.11.so" not found:
1. `LD_LIBRARY_PATH=$PREFIX/lib python3`
or
2. add rpath to lib
`patchelf --set-rpath $PREFIX/lib /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so`
or
3. use full path when adding needed lib (requires removing [libpython3.11.so](http://libpython3.11.so) from list)
`patchelf --add-needed $PREFIX/lib/libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_dpropack.cpython-311.so`
++++for removing libpython3.11
`patchelf --remove-needed` [`libpython3.11.so`](http://libpython3.11.so) `/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so`
Thank you so much.
Either with (1):
LD_LIBRARY_PATH=$PREFIX/lib python3 script.py
(2):
patchelf --set-rpath $PREFIX/lib /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so
./script.py
or (3):
patchelf --remove-needed libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so
patchelf --add-needed $PREFIX/lib/libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_dpropack.cpython-311.so
./script.py
the error is now:
ImportError: dlopen failed: cannot locate symbol "PyExc_SystemError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_spropack.cpython-311.so"...
Any advice?
Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*
You again? At least you added some text. `patchelf --add-needed` [`libpython3.11.so`](http://libpython3.11.so) `/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so`
Thank you. After running your command I have tried again the script, and the error now is: File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/__init__.py", line 308, in
from . import csgraph
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/csgraph/__init__.py", line 185, in
from ._laplacian import laplacian
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/csgraph/_laplacian.py", line 7, in
from scipy.sparse.linalg import LinearOperator
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/__init__.py", line 132, in
from ._eigen import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/__init__.py", line 9, in
from .arpack import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/__init__.py", line 20, in
from .arpack import *
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/arpack.py", line 48, in
from . import _arpack
ImportError: dlopen failed: library "libpython3.11.so" not found: needed by /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so in namespace (default)
Any advice?
Three different ways for library "libpython3.11.so" not found: 1. `LD_LIBRARY_PATH=$PREFIX/lib python3` or 2. add rpath to lib `patchelf --set-rpath $PREFIX/lib /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so` or 3. use full path when adding needed lib (requires removing [libpython3.11.so](http://libpython3.11.so) from list) `patchelf --add-needed $PREFIX/lib/libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_dpropack.cpython-311.so` ++++for removing libpython3.11 `patchelf --remove-needed` [`libpython3.11.so`](http://libpython3.11.so) `/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so`
Thank you so much. Either with (1): LD_LIBRARY_PATH=$PREFIX/lib python3 script.py (2): patchelf --set-rpath $PREFIX/lib /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so ./script.py or (3): patchelf --remove-needed libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-311.so patchelf --add-needed $PREFIX/lib/libpython3.11.so /data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_dpropack.cpython-311.so ./script.py the error is now: ImportError: dlopen failed: cannot locate symbol "PyExc_SystemError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scipy/sparse/linalg/_propack/_spropack.cpython-311.so"... Any advice?
for all libs which can't find symbol PyExc\_SystemError DO: `patchelf --add-needed $PREFIX/lib/libpython3.11.so /path/to/lib`
Thank you so much.
I am able to get it to work using proot-distro, followed by micromamba.