pillow not found in buildozer e kivymd

375 views
Skip to first unread message

Josiel Soares

unread,
Sep 6, 2021, 9:00:58 PM9/6/21
to Kivy users support
hello my dears, i'm new here on the forum, i would like to ask why i'm getting a pillow not found error.
Is there a way to fix this? every time I use kivymd it the buildozer doesn't find the pillow
already installed the pillow on pip pip3 and nothing resolved in my case here.

Elliot Garbus

unread,
Sep 6, 2021, 10:19:18 PM9/6/21
to kivy-...@googlegroups.com

Make sure you have added pillow to your bulldozer requirements…

Read: https://github.com/Android-for-Python/Android-for-Python-Users#requirements

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/04de0465-7876-4946-af41-e804c003ed44n%40googlegroups.com.

 

Josiel Soares

unread,
Sep 8, 2021, 7:31:17 PM9/8/21
to Kivy users support
And now PIL not found happens, what is broken?

Josiel Soares

unread,
Sep 8, 2021, 7:39:59 PM9/8/21
to Kivy users support
ModuleNotFoundError: No module named 'PIL'

Robert

unread,
Sep 8, 2021, 9:06:25 PM9/8/21
to Kivy users support

Josiel Soares

unread,
Sep 13, 2021, 10:10:10 AM9/13/21
to Kivy users support
What is happening in my environment? 
The app crashes after start.
the logcat here
$ buildozer android logcat | grep python
* daemon not running; starting now at tcp:5037
* daemon started successfully
09-13 11:01:29.245 15313 15327 V pythonactivityutil: UNPACKING!!! private app
09-13 11:01:29.246 15313 15327 V pythonactivityutil: Data version is 1631456762.2614594
09-13 11:01:29.304 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libpython3.8m.so
09-13 11:01:29.304 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libssl1.1.so
09-13 11:01:29.304 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_mixer.so
09-13 11:01:29.305 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_ttf.so
09-13 11:01:29.305 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libmain.so
09-13 11:01:29.306 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libSDL2.so
09-13 11:01:29.306 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libhidapi.so
09-13 11:01:29.307 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libffi.so
09-13 11:01:29.307 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libsqlite3.so
09-13 11:01:29.307 15313 15313 V pythonutil: Pattern libsqlite3\.so matched file libsqlite3.so
09-13 11:01:29.307 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libcrypto1.1.so
09-13 11:01:29.307 15313 15313 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_image.so
09-13 11:01:29.308 15313 15313 V pythonutil: Checking pattern libffi\.so against libpython3.8m.so
09-13 11:01:29.308 15313 15313 V pythonutil: Checking pattern libffi\.so against libssl1.1.so
09-13 11:01:29.309 15313 15313 V pythonutil: Checking pattern libffi\.so against libSDL2_mixer.so
09-13 11:01:29.309 15313 15313 V pythonutil: Checking pattern libffi\.so against libSDL2_ttf.so
09-13 11:01:29.309 15313 15313 V pythonutil: Checking pattern libffi\.so against libmain.so
09-13 11:01:29.309 15313 15313 V pythonutil: Checking pattern libffi\.so against libSDL2.so
09-13 11:01:29.309 15313 15313 V pythonutil: Checking pattern libffi\.so against libhidapi.so
09-13 11:01:29.310 15313 15313 V pythonutil: Checking pattern libffi\.so against libffi.so
09-13 11:01:29.310 15313 15313 V pythonutil: Pattern libffi\.so matched file libffi.so
09-13 11:01:29.310 15313 15313 V pythonutil: Checking pattern libffi\.so against libsqlite3.so
09-13 11:01:29.310 15313 15313 V pythonutil: Checking pattern libffi\.so against libcrypto1.1.so
09-13 11:01:29.310 15313 15313 V pythonutil: Checking pattern libffi\.so against libSDL2_image.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libpython3.8m.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libssl1.1.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libSDL2_mixer.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libSDL2_ttf.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libmain.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libSDL2.so
09-13 11:01:29.311 15313 15313 V pythonutil: Checking pattern libpng16\.so against libhidapi.so
09-13 11:01:29.312 15313 15313 V pythonutil: Checking pattern libpng16\.so against libffi.so
09-13 11:01:29.312 15313 15313 V pythonutil: Checking pattern libpng16\.so against libsqlite3.so
09-13 11:01:29.312 15313 15313 V pythonutil: Checking pattern libpng16\.so against libcrypto1.1.so
09-13 11:01:29.312 15313 15313 V pythonutil: Checking pattern libpng16\.so against libSDL2_image.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libpython3.8m.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libssl1.1.so
09-13 11:01:29.313 15313 15313 V pythonutil: Pattern libssl.*\.so matched file libssl1.1.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libSDL2_mixer.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libSDL2_ttf.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libmain.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libSDL2.so
09-13 11:01:29.313 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libhidapi.so
09-13 11:01:29.314 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libffi.so
09-13 11:01:29.314 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libsqlite3.so
09-13 11:01:29.314 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libcrypto1.1.so
09-13 11:01:29.314 15313 15313 V pythonutil: Checking pattern libssl.*\.so against libSDL2_image.so
09-13 11:01:29.314 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libpython3.8m.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libssl1.1.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_mixer.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_ttf.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libmain.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libhidapi.so
09-13 11:01:29.315 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libffi.so
09-13 11:01:29.316 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libsqlite3.so
09-13 11:01:29.316 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libcrypto1.1.so
09-13 11:01:29.316 15313 15313 V pythonutil: Pattern libcrypto.*\.so matched file libcrypto1.1.so
09-13 11:01:29.316 15313 15313 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_image.so
09-13 11:01:29.318 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libpython3.8m.so
09-13 11:01:29.318 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libssl1.1.so
09-13 11:01:29.318 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libSDL2_mixer.so
09-13 11:01:29.318 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libSDL2_ttf.so
09-13 11:01:29.319 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libmain.so
09-13 11:01:29.319 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libSDL2.so
09-13 11:01:29.319 15313 15313 V pythonutil: Pattern libSDL2\.so matched file libSDL2.so
09-13 11:01:29.319 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libhidapi.so
09-13 11:01:29.319 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libffi.so
09-13 11:01:29.320 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libsqlite3.so
09-13 11:01:29.320 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libcrypto1.1.so
09-13 11:01:29.320 15313 15313 V pythonutil: Checking pattern libSDL2\.so against libSDL2_image.so
09-13 11:01:29.321 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libpython3.8m.so
09-13 11:01:29.321 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libssl1.1.so
09-13 11:01:29.322 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libSDL2_mixer.so
09-13 11:01:29.322 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libSDL2_ttf.so
09-13 11:01:29.322 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libmain.so
09-13 11:01:29.322 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libSDL2.so
09-13 11:01:29.323 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libhidapi.so
09-13 11:01:29.323 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libffi.so
09-13 11:01:29.323 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libsqlite3.so
09-13 11:01:29.324 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libcrypto1.1.so
09-13 11:01:29.324 15313 15313 V pythonutil: Checking pattern libSDL2_image\.so against libSDL2_image.so
09-13 11:01:29.324 15313 15313 V pythonutil: Pattern libSDL2_image\.so matched file libSDL2_image.so
09-13 11:01:29.325 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libpython3.8m.so
09-13 11:01:29.325 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libssl1.1.so
09-13 11:01:29.326 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libSDL2_mixer.so
09-13 11:01:29.326 15313 15313 V pythonutil: Pattern libSDL2_mixer\.so matched file libSDL2_mixer.so
09-13 11:01:29.326 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libSDL2_ttf.so
09-13 11:01:29.326 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libmain.so
09-13 11:01:29.326 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libSDL2.so
09-13 11:01:29.326 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libhidapi.so
09-13 11:01:29.327 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libffi.so
09-13 11:01:29.327 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libsqlite3.so
09-13 11:01:29.327 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libcrypto1.1.so
09-13 11:01:29.327 15313 15313 V pythonutil: Checking pattern libSDL2_mixer\.so against libSDL2_image.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libpython3.8m.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libssl1.1.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libSDL2_mixer.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libSDL2_ttf.so
09-13 11:01:29.328 15313 15313 V pythonutil: Pattern libSDL2_ttf\.so matched file libSDL2_ttf.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libmain.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libSDL2.so
09-13 11:01:29.328 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libhidapi.so
09-13 11:01:29.329 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libffi.so
09-13 11:01:29.329 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libsqlite3.so
09-13 11:01:29.329 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libcrypto1.1.so
09-13 11:01:29.329 15313 15313 V pythonutil: Checking pattern libSDL2_ttf\.so against libSDL2_image.so
09-13 11:01:29.329 15313 15313 V pythonutil: Loading library: sqlite3
09-13 11:01:29.337 15313 15313 V pythonutil: Loading library: ffi
09-13 11:01:29.342 15313 15313 V pythonutil: Loading library: ssl1.1
09-13 11:01:29.360 15313 15313 V pythonutil: Loading library: crypto1.1
09-13 11:01:29.361 15313 15313 V pythonutil: Loading library: SDL2
09-13 11:01:29.381 15313 15313 V pythonutil: Loading library: SDL2_image
09-13 11:01:29.390 15313 15313 V pythonutil: Loading library: SDL2_mixer
09-13 11:01:29.396 15313 15313 V pythonutil: Loading library: SDL2_ttf
09-13 11:01:29.404 15313 15313 V pythonutil: Loading library: python3.5m
09-13 11:01:29.407 15313 15313 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.josielsoares.super_ditados_populares-1/base.apk"],nativeLibraryDirectories=[/data/app/com.josielsoares.super_ditados_populares-1/lib/arm, /data/app/com.josielsoares.super_ditados_populares-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libpython3.5m.so"
09-13 11:01:29.407 15313 15313 V pythonutil: Loading library: python3.6m
09-13 11:01:29.408 15313 15313 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.josielsoares.super_ditados_populares-1/base.apk"],nativeLibraryDirectories=[/data/app/com.josielsoares.super_ditados_populares-1/lib/arm, /data/app/com.josielsoares.super_ditados_populares-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libpython3.6m.so"
09-13 11:01:29.408 15313 15313 V pythonutil: Loading library: python3.7m
09-13 11:01:29.409 15313 15313 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.josielsoares.super_ditados_populares-1/base.apk"],nativeLibraryDirectories=[/data/app/com.josielsoares.super_ditados_populares-1/lib/arm, /data/app/com.josielsoares.super_ditados_populares-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libpython3.7m.so"
09-13 11:01:29.409 15313 15313 V pythonutil: Loading library: python3.8m
09-13 11:01:29.425 15313 15313 V pythonutil: Loading library: main
09-13 11:01:29.432 15313 15313 V pythonutil: Loaded everything!
09-13 11:01:29.510 15313 15333 I python  : Initializing Python for Android
09-13 11:01:29.510 15313 15333 I python  : Setting additional env vars from p4a_env_vars.txt
09-13 11:01:29.516 15313 15333 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
09-13 11:01:29.516 15313 15333 I python  : /data/user/0/com.josielsoares.super_ditados_populares/files/app
09-13 11:01:29.521 15313 15333 I python  : Preparing to initialize python
09-13 11:01:29.521 15313 15333 I python  : _python_bundle dir exists
09-13 11:01:29.521 15313 15333 I python  : calculated paths to be...
09-13 11:01:29.521 15313 15333 I python  : /data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/stdlib.zip:/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/modules
09-13 11:01:29.535 15313 15333 I python  : set wchar paths...
09-13 11:01:29.789 15313 15333 I python  : Initialized python
09-13 11:01:29.789 15313 15333 I python  : AND: Init threads
09-13 11:01:29.793 15313 15333 I python  : testing python print redirection
09-13 11:01:29.796 15313 15333 I python  : Android path ['.', '/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/stdlib.zip', '/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/modules', '/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/site-packages']
09-13 11:01:29.797 15313 15333 I python  : os.environ is environ({'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-telephony-common.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar', 'ANDROID_PROPERTY_WORKSPACE': '9,0', 'ANDROID_SOCKET_zygote': '11', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/com.josielsoares.super_ditados_populares/files/app', 'ANDROID_APP_PATH': '/data/user/0/com.josielsoares.super_ditados_populares/files/app', 'ANDROID_PRIVATE': '/data/user/0/com.josielsoares.super_ditados_populares/files', 'ANDROID_UNPACK': '/data/user/0/com.josielsoares.super_ditados_populares/files/app', 'PYTHONHOME': '/data/user/0/com.josielsoares.super_ditados_populares/files/app', 'PYTHONPATH': '/data/user/0/com.josielsoares.super_ditados_populares/files/app:/data/user/0/com.josielsoares.super_ditados_populares/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
09-13 11:01:29.797 15313 15333 I python  : Android kivy bootstrap done. __name__ is __main__
09-13 11:01:29.797 15313 15333 I python  : AND: Ran string
09-13 11:01:29.797 15313 15333 I python  : Run user program, change dir and execute entrypoint
09-13 11:01:30.299 15313 15333 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/com.josielsoares.super_ditados_populares/files/app/.kivy/logs/kivy_21-09-13_0.txt
09-13 11:01:30.299 15313 15333 I python  : [INFO   ] [Kivy        ] v2.0.0
09-13 11:01:30.300 15313 15333 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
09-13 11:01:30.301 15313 15333 I python  : [INFO   ] [Python      ] v3.8.1 (default, Sep 12 2021, 11:13:37) 
09-13 11:01:30.301 15313 15333 I python  : [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462
09-13 11:01:30.301 15313 15333 I python  : [INFO   ] [Python      ] Interpreter at ""
09-13 11:01:30.310 15313 15333 I python  : [INFO   ] [KivyMD      ] 0.104.2, git-bc7d1f5, 2021-06-06 (installed at "/data/user/0/com.josielsoares.super_ditados_populares/files/app/_python_bundle/site-packages/kivymd/__init__.pyc")
09-13 11:01:30.328 15313 15333 I python  : [INFO   ] [Factory     ] 186 symbols loaded
09-13 11:01:32.700 15313 15333 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
09-13 11:01:32.824 15313 15333 I python  : [INFO   ] [Text        ] Provider: sdl2
09-13 11:01:34.070 15313 15333 I python  : [INFO   ] [Window      ] Provider: sdl2
09-13 11:01:34.136 15313 15333 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
09-13 11:01:34.140 15313 15333 I python  : [INFO   ] [GL          ] Backend used <sdl2>
09-13 11:01:34.141 15313 15333 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
09-13 11:01:34.142 15313 15333 I python  : [INFO   ] [GL          ] OpenGL vendor <b'ARM'>
09-13 11:01:34.144 15313 15333 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Mali-400 MP'>
09-13 11:01:34.145 15313 15333 I python  : [INFO   ] [GL          ] OpenGL parsed version: 2, 0
09-13 11:01:34.146 15313 15333 I python  : [INFO   ] [GL          ] Texture max size <4096>
09-13 11:01:34.147 15313 15333 I python  : [INFO   ] [GL          ] Texture max units <8>
09-13 11:01:34.200 15313 15333 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
09-13 11:01:34.204 15313 15333 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
09-13 11:01:34.583 15313 15333 I python  :  Traceback (most recent call last):
09-13 11:01:34.584 15313 15333 I python  :    File "/home/scientist/miniconda3/envs/kv20/KivyApps/ditados_populares/.buildozer/android/app/main.py", line 14, in <module>
09-13 11:01:34.586 15313 15333 I python  :    File "/home/scientist/miniconda3/envs/kv20/KivyApps/ditados_populares/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/super_ditados_populares/kivymd/uix/__init__.py", line 8, in <module>
09-13 11:01:34.587 15313 15333 I python  :    File "/home/scientist/miniconda3/envs/kv20/KivyApps/ditados_populares/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/super_ditados_populares/kivymd/uix/behaviors/__init__.py", line 10, in <module>
09-13 11:01:34.588 15313 15333 I python  :    File "/home/scientist/miniconda3/envs/kv20/KivyApps/ditados_populares/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/super_ditados_populares/kivymd/uix/behaviors/backgroundcolor_behavior.py", line 25, in <module>
09-13 11:01:34.590 15313 15333 I python  :    File "/home/scientist/miniconda3/envs/kv20/KivyApps/ditados_populares/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/super_ditados_populares/kivymd/uix/behaviors/elevation.py", line 364, in <module>
09-13 11:01:34.593 15313 15333 I python  :  ModuleNotFoundError: No module named 'PIL'
09-13 11:01:34.594 15313 15333 I python  : Python for android ended.

And the conda package list here
$conda list
# packages in environment at /home/scientist/miniconda3/envs/kv20:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             4.5                       1_gnu  
alsa-lib                  1.2.3                h516909a_0    conda-forge
ca-certificates           2021.5.30            ha878542_0    conda-forge
certifi                   2021.5.30        py39hf3d152e_0    conda-forge
charset-normalizer        2.0.4                    pypi_0    pypi
docutils                  0.17.1           py39hf3d152e_0    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
gettext                   0.19.8.1          h0b5b191_1005    conda-forge
gst-plugins-base          1.18.4               hf529b03_2    conda-forge
gstreamer                 1.18.4               h76c114f_2    conda-forge
idna                      3.2                      pypi_0    pypi
jbig                      2.1               h7f98852_2003    conda-forge
jpeg                      9d                   h36c2ea0_0    conda-forge
kivmob                    2.0                      pypi_0    pypi
kivy                      2.0.0            py39h99e5976_3    conda-forge
kivy-garden               0.1.4                    pypi_0    pypi
kivymd                    0.104.2                  pypi_0    pypi
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.35.1               h7274673_9  
lerc                      2.2.1                h9c3ff4c_0    conda-forge
libdeflate                1.7                  h7f98852_5    conda-forge
libffi                    3.3                  he6710b0_2  
libgcc-ng                 9.3.0               h5101ec6_17  
libglib                   2.68.3               h3e27bee_0    conda-forge
libgomp                   9.3.0               h5101ec6_17  
libiconv                  1.16                 h516909a_0    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libstdcxx-ng              9.3.0               hd4cf53a_17  
libtiff                   4.3.0                hf544144_1    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libwebp-base              1.2.0                h27cfd23_0  
libxcb                    1.13              h7f98852_1003    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
ncurses                   6.2                  he6710b0_1  
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openjpeg                  2.4.0                hb52868f_1    conda-forge
openssl                   1.1.1k               h7f98852_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pillow                    8.3.1            py39ha612740_0    conda-forge
pip                       21.2.4           py37h06a4308_0  
plyer                     2.0.0                    pypi_0    pypi
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pygments                  2.10.0             pyhd8ed1ab_0    conda-forge
python                    3.9.6                h12debd9_1  
python_abi                3.9                      2_cp39    conda-forge
readline                  8.1                  h27cfd23_0  
requests                  2.26.0                   pypi_0    pypi
sdl2                      2.0.12               h9c3ff4c_1    conda-forge
sdl2_image                2.0.5                h0e9dbb3_0    conda-forge
sdl2_mixer                2.0.4                he1b5a44_0    conda-forge
sdl2_ttf                  2.0.15               h7d98c4e_0    conda-forge
setuptools                52.0.0           py39h06a4308_0  
smpeg2                    2.0.0                hfc679d8_1    conda-forge
sqlite                    3.36.0               hc218d9a_0  
tk                        8.6.10               hbc83047_0  
tzdata                    2021a                h5d7bf9c_0  
urllib3                   1.26.6                   pypi_0    pypi
wheel                     0.37.0             pyhd3eb1b0_0  
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h7f98852_1    conda-forge
xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.5                h7b6447c_0  
zlib                      1.2.11               h7b6447c_3  
zstd                      1.5.0                ha95c52a_0    conda-forge

The app without kivymd works properly.
Thanks for you help.

Josiel Soares

unread,
Sep 13, 2021, 10:18:46 AM9/13/21
to Kivy users support
Pip package List
$ pip list
Package                           Version
--------------------------------- -------------------
asgiref                           3.4.1
backports.entry-points-selectable 1.1.0
brotlipy                          0.7.0
certifi                           2021.5.30
cffi                              1.14.6
chardet                           4.0.0
conda                             4.10.3
conda-package-handling            1.7.3
cryptography                      3.4.7
Cython                            0.29.19
distlib                           0.3.2
Django                            3.2.6
docutils                          0.17.1
filelock                          3.0.12
idna                              2.10
image                             1.5.33
kivmob                            2.0
Kivy                              2.0.0
Kivy-Garden                       0.1.4
kivymd                            0.104.2
Pillow                            8.3.2
pip                               21.2.4
platformdirs                      2.2.0
plyer                             2.0.0
pycosat                           0.6.3
pycparser                         2.20
Pygments                          2.10.0
pyOpenSSL                         20.0.1
PySocks                           1.7.1
pytz                              2021.1
requests                          2.25.1
ruamel-yaml-conda                 0.15.100
setuptools                        52.0.0.post20210125
six                               1.16.0
sqlparse                          0.4.1
tqdm                              4.61.2
urllib3                           1.26.6
virtualenv                        20.7.2
wheel                             0.36.2

Robert

unread,
Sep 13, 2021, 1:17:42 PM9/13/21
to Kivy users support
No idea what is going on, but some things it looks like you don't understand:

1) The Conda environment only matters for Buildozer's install dependencies
2) The pip (pip3?) list doesn't include buildozer. Since buildozer runs, there is perhaps some venv issue.
3)  Buildozer package dependencies are specified with the requirements option (see previous link), local install of that package is irrelevant to Buildozer.

Josiel Soares

unread,
Sep 14, 2021, 7:08:39 PM9/14/21
to Kivy users support
Okay guys, lets talk about what happens at my project:

#this fail:
requirements = python3, sqlite3, kivy==2.0.0, kivymd==0.104.2, sdl2_ttf == 2.0.15, pillow, plyer

#this finally works:
#requirements = sqlite3,pillow,python3,kivy==2.0.0rc4,git+https://github.com/HeaTTheatR/KivyMD.git,sdl2_ttf==2.0.15, plyer

#this works too:
#requirements = sqlite3,pillow,python3,kivy==2.0.0rc4,kivymd,sdl2_ttf==2.0.15, plyer

#this works yet:
#requirements = sqlite3,pillow,python3,kivy==2.0.0rc4,kivymd==0.104.2,sdl2_ttf==2.0.15, plyer
thanks so much for your replies.
Now i can release my app,  cheers.

Robert

unread,
Sep 14, 2021, 9:18:32 PM9/14/21
to Kivy users support
Thanks, from this I infer that:

1) The app depends on a prior release candidate version of Kivy from 11 months ago. I strongly suggest using the release version kivy==2.0.0 as this addresses other issues ( https://github.com/Android-for-Python/Android-for-Python-Users#requirements) . Clearly comparing the red and the green cases suggests that this won't work. This means there is some issue in the app, it is working for the 'wrong' reason (or no appclean when testing).

2) The app depends on KivyMD 0.104.2  or later  (0.104.2 is the current release version). Referencing the current git version (the blue example) will give a repeatability issue as the contents will change in the future (tomorrow?). Also KivyMD is a moving target , the yellow case will give you a future release (next year?), when that happens (you may or may not want that). The best one from the point of view of KivyMD is the green one.

3) And FYI sqlite3 need not be there (but its OK too) because it is automatically there ( https://github.com/Android-for-Python/Android-for-Python-Users#requirements-basics ).
Reply all
Reply to author
Forward
0 new messages