ImportError: COMError from '_ctypes'

393 views
Skip to first unread message

Pranil Tankhiwale

unread,
Jul 5, 2023, 2:40:19 PM7/5/23
to Kivy users support
Hello all
I am a beginner at Python kivy
APK file creation was successful but app crashes on phone
adb logcat shows the below error, which is, I guess, a Windows specific error:

ImportError: cannot import name 'COMError' from '_ctypes' (/data/user/0/org.test.carwa/files/app/_python_bundle/modules/_ctypes.cpython-310.so)

Additional Python modules/libraries used in project: pyttsx3, speech_recognition
I am using "Kivy app to APK" Google Colab file (below mentioned link) for APK creation and a Windows OS laptop, with python 3.10.4 and kivy 2.2.0:

Please suggest a solution for this issue, as the app is very important for my project.

Thanks in advance.

Robert

unread,
Jul 5, 2023, 3:32:07 PM7/5/23
to Kivy users support
As you suggest it looks like your app is trying to do something Windows specific.
If you look at the traceback you should see the source of the issue.

More generally https://github.com/Android-for-Python/Android-for-Python-Users#what-is-different-about-android
Pay particular attention to the Wheels section.
Reply all
Reply to author
Forward
0 new messages