cheadrian / mergebot

AliExpress Merge Boss bot with OpenCV, Python, ADB control running on PC and Termux
The Unlicense
17 stars 0 forks source link

No working, everything tried (termux) #7

Open riostgjro opened 3 weeks ago

riostgjro commented 3 weeks ago

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_baGH9Nd44

Could you please help me resolve this issue? Any assistance would be greatly appreciated.

Thank you!

cheadrian commented 3 weeks 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.

anaschillin commented 3 weeks ago

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
cheadrian commented 3 weeks ago

@anaschillin does the OpenCV Python module work fine if it is set up like this?

anaschillin commented 3 weeks ago

I installed all of them. Didnt try with openCV Puthon alone