Open riostgjro opened 3 months ago
Yes, I confirm this error using latest Termux version. Reported here: Avoiding ImportError in OpenCV: Troubleshooting Symbol Not Found Error Cannot locate symbol opencv
Steps to reproduce:
Using Termux v0.118.1.
First, before following the instructions, use termux-change-repo
and select a relevant mirror from your specific territory. I use the Europe group (select with space, then press Ok with enter).
After yes | pkg update -y
run yes | pkg upgrade -y
.
Then follow the instructions.
Possible fixes that didn't worked out:
Use pkg install x11-repo -y
, pkg install matplotlib -y
, pkg rei opencv -y
, pkg rei opencv-python
and
patchelf --add-needed libpython3.11.so /data/data/com.termux/files/usr/lib/libopencv_dnn.so
patchelf --set-rpath $PREFIX/lib /data/data/com.termux/files/usr/lib/libopencv_dnn.so
A fix for this problem would be to recompile the package, but I don't think it's worth the trouble. It is described here.
So we have to wait for someone to fix this problem on the Termux side.
Run it on proot
inside the Termux. You can install Python, OpenCV and so inside the proot
with easy, just search how to create an proot
and install the packages from the instructions using apt or similar package manager. Or you can run on PC.
Pkg install statement can be improved slightly like this to do one click install:
pkg install x11-repo -y && pkg install matplotlib -y && pkg rei opencv -y && pkg rei opencv-python
@anaschillin does the OpenCV Python module work fine if it is set up like this?
I installed all of them. Didnt try with openCV Puthon alone
It actually works, clean termux setup from the start: Termux, Termux:API and Termux:GUI installed from GitHub.
termux-change-repo
yes | pkg update -y
yes | pkg upgrade -y
pkg install x11-repo -y && pkg install matplotlib -y && pkg rei opencv -y && pkg rei opencv-python
pkg install -y git tesseract android-tools termux-api
pip install numpy pytesseract pure-python-adb termuxgui
Then the adb pairing stuff with split view.
Create a config.
Afterwards python bot_gui.py and bot_run.py work as usual.
I also had to fix something to make tapping work... but that has nothing to do with this breaking opencv update. Already had to do that before.
Hello,
I’ve been experiencing an issue with just run
gui and run
in the project. I’ve tried multiple solutions but nothing seems to work. I have recorded a video demonstrating the problem: https://youtu.be/J_baGH9Nd44Could you please help me resolve this issue? Any assistance would be greatly appreciated.
Thank you!