The application crashes when I run on the phone (No module named 'cv2')

133 views
Skip to first unread message

Максим Шепард

unread,
Apr 12, 2019, 8:25:53 AM4/12/19
to Kivy users support
Good afternoon, when building an application in a buildozer problem. On the computer, the application works, respectively, opencv is installed.
requirements = python3 == 3.7.3, kivy, numpy, opencv, git + https: //github.com/HeaTTheatR/KivyMD.git
The build runs without errors, but the application crashes.
logcat:
04-12 17:14:57.685 28533 28578 I python  : Run user program, change dir and execute entrypoint
04-12 17:14:57.782 28533 28578 I python  : [WARNING] [Config      ] Older configuration version detected (0 instead of 21)
04-12 17:14:57.782 28533 28578 I python  : [WARNING] [Config      ] Upgrading configuration in progress.
04-12 17:14:57.786 28533 28578 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/org.app.myapp/files/app/.kivy/logs/kivy_19-04-12_0.txt
04-12 17:14:57.786 28533 28578 I python  : [INFO   ] [Kivy        ] v1.11.0.dev0, git-Unknown, 20190411
04-12 17:14:57.786 28533 28578 I python  : [INFO   ] [Python      ] v3.7.3 (default, Apr  9 2019, 15:53:02)
04-12 17:14:57.786 28533 28578 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
04-12 17:14:57.881 28533 28578 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
04-12 17:14:57.907 28533 28578 I python  : [INFO   ] [Text        ] Provider: sdl2
04-12 17:14:57.911 28533 28578 I python  : [INFO   ] [Factory     ] 184 symbols loaded
04-12 17:14:58.158 28533 28578 I python  :  Traceback (most recent call last):
04-12 17:14:58.159 28533 28578 I python  :    File "/home/max/desktop/finish/.buildozer/android/app/main.py", line 13, in <module>
04-12 17:14:58.159 28533 28578 I python  :  ModuleNotFoundError: No module named 'cv2'
04-12 17:14:58.159 28533 28578 I python  : Python for android ended.


Can you please tell me how to fix it?

Robert Flatt

unread,
Apr 12, 2019, 7:44:24 PM4/12/19
to Kivy users support
Where there any build error messages in the log file?

I get that it did build an apk, but that does not mean no build problems :(
Reply all
Reply to author
Forward
0 new messages