Skip to content

Instantly share code, notes, and snippets.

@FeralBytes
Created September 28, 2017 01:16
Show Gist options
  • Save FeralBytes/c6c03fa6d8ce82676fdb6bb69af1bfdd to your computer and use it in GitHub Desktop.
Save FeralBytes/c6c03fa6d8ce82676fdb6bb69af1bfdd to your computer and use it in GitHub Desktop.
Kivy Chicken & Egg Android Emulator Problem
adb install -r EzTunes-0.2.0-debug.apk && adb logcat -c && adb logcat | grep -e "I s1" -e "I python" -e "I/s1" -e "I/python"
1169 KB/s (11429325 bytes in 9.546s)
pkg: /data/local/tmp/EzTunes-0.2.0-debug.apk
Success
I/python ( 1278): Initialize Python for Android
I/python ( 1278): Changing directory to the one provided by ANDROID_ARGUMENT
I/python ( 1278): /data/data/com.feralbytes.eztunes/files/app
I/python ( 1278): Preparing to initialize python
I/python ( 1278): crystax_python does not exist
I/python ( 1278): Initialized python
I/python ( 1278): AND: Init threads
I/python ( 1278): testing python print redirection
I/python ( 1278): Setting up python from ANDROID_PRIVATE
I/python ( 1278): ('Android path', ['/data/data/com.feralbytes.eztunes/files/app/lib/python27.zip', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/lib-dynload/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages/', '/data/data/com.feralbytes.eztunes/files/app'])
I/python ( 1278): ('os.environ is', {'ANDROID_APP_PATH': '/data/data/com.feralbytes.eztunes/files/app', 'EXTERNAL_STORAGE': '/storage/sdcard', 'LOOP_MOUNTPOINT': '/mnt/obb', 'ANDROID_SOCKET_zygote': '9', 'BOOTCLASSPATH': '/system/framework/core.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/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar', 'ANDROID_PROPERTY_WORKSPACE': '8,49152', 'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'ANDROID_STORAGE': '/storage', 'ANDROID_BOOTLOGO': '1', 'ANDROID_DATA': '/data', 'ANDROID_ASSETS': '/system/app', 'LD_LIBRARY_PATH': '/vendor/lib:/system/lib', 'PYTHONOPTIMIZE': '2', 'ANDROID_PRIVATE': '/data/data/com.feralbytes.eztunes/files', 'ANDROID_ENTRYPOINT': 'main.pyo', 'PYTHONPATH': '/data/data/com.feralbytes.eztunes/files/app:/data/data/com.feralbytes.eztunes/files/app/lib', 'ANDROID_UNPACK': '/data/data/com.feralbytes.eztunes/files/app', 'PYTHON_NAME': 'python', 'ANDROID_ROOT': '/system', 'PYTHONHOME': '/data/data/com.feralbytes.eztunes/files/app', 'ASEC_MOUNTPOINT': '/mnt/asec', 'ANDROID_ARGUMENT': '/data/data/com.feralbytes.eztunes/files/app'})
I/python ( 1278): ('Android kivy bootstrap done. __name__ is', '__main__')
I/python ( 1278): ['/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages', '/data/data/com.feralbytes.eztunes/files/app/lib/site-python']
I/python ( 1278): AND: Ran string
I/python ( 1278): Run user program, change dir and execute entrypoint
I/python ( 1278): Please wait well the user interface is initialized.
I/python ( 1278): ('OS =', 'Android', 'posix', 'linux4')
I/python ( 1278): ('FILE_DIR =', '/data/data/com.feralbytes.eztunes/files/app')
I/python ( 1278): ('APP_USER_DIR =', '/storage/sdcard/.FeralBytes/EzTunes')
I/python ( 1278): ('COMPANY_DIR =', '/storage/sdcard/.FeralBytes')
I/python ( 1278): ('COMPANY_USER_DIR =', '/storage/sdcard/.FeralBytes')
I/python ( 1278): Traceback (most recent call last):
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 842, in emit
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 719, in format
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 464, in format
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 328, in getMessage
I/python ( 1278): TypeError: not all arguments converted during string formatting
I/python ( 1278): Logged from file __init__.py, line 1600
I/python ( 1278): Traceback (most recent call last):
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 842, in emit
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 719, in format
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 464, in format
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 328, in getMessage
I/python ( 1278): TypeError: not all arguments converted during string formatting
I/python ( 1278): Logged from file __init__.py, line 1600
I/python ( 1278): Log Location=/data/data/com.feralbytes.eztunes/files/app/log.txt
I/python ( 1278): USER_DIR=/storage/sdcard | APP_USER_DIR=/storage/sdcard/.FeralBytes/EzTunes | APP_DIR=/data/data/com.feralbytes.eztunes/files/app | FILE_DIR=/data/data/com.feralbytes.eztunes/files/app | RESOURCES_DIR=/data/data/com.feralbytes.eztunes/files/app/resources | COMPANY_DIR=/storage/sdcard/.FeralBytes | TEMP_DIR=/data/data/com.feralbytes.eztunes/files/app | APP_TEMP_DIR=/data/data/com.feralbytes.eztunes/files/app | COMPANY_USER_DIR=/storage/sdcard/.FeralBytes
I/python ( 1278): [WARNING] [Config ] Older configuration version detected (0 instead of 19)
I/python ( 1278): [WARNING] [Config ] Upgrading configuration in progress.
I/python ( 1278): [DEBUG ] [Config ] Upgrading from 0 to 1
I/python ( 1278): [INFO ] [Logger ] Record log in /data/data/com.feralbytes.eztunes/files/app/.kivy/logs/kivy_17-09-27_0.txt
I/python ( 1278): [INFO ] [Kivy ] v1.10.0
I/python ( 1278): [INFO ] [Python ] v2.7.2 (default, Sep 4 2017, 18:37:00)
I/python ( 1278): [GCC 5.3 20151204]
I/python ( 1278): [INFO ] [OSC ] using <thread> for socket
I/python ( 1278): Set Port
I/python ( 1278): [INFO ] [OSC ] listening for Tuio on 127.0.0.1:8808
I/python ( 1278): ('app', 'stored port number', 8808)
I/python ( 1278): [INFO ] [Factory ] 194 symbols loaded
I/python ( 1278): [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
I/python ( 1278): [INFO ] [Window ] Provider: sdl2
I/python ( 1278): [INFO ] [GL ] Using the "OpenGL ES 2" graphics system
I/python ( 1278): [INFO ] [GL ] Backend used <gl>
I/python ( 1278): [INFO ] [GL ] OpenGL version <OpenGL ES 2.0 (4.5.0 NVIDIA 375.66)>
I/python ( 1278): [INFO ] [GL ] OpenGL vendor <Google (NVIDIA Corporation)>
I/python ( 1278): [INFO ] [GL ] OpenGL renderer <Android Emulator OpenGL ES Translator (GeForce GTX 950M/PCIe/SSE2)>
I/python ( 1278): [INFO ] [GL ] OpenGL parsed version: 2, 0
I/python ( 1278): [INFO ] [GL ] Texture max size <16384>
I/python ( 1278): [INFO ] [GL ] Texture max units <32>
I/python ( 1278): Traceback (most recent call last):
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/logging/__init__.py", line 865, in emit
I/python ( 1278): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc8 in position 41: ordinal not in range(128)
I/python ( 1278): Logged from file __init__.py, line 1051
I/python ( 1278): [CRITICAL] [Window ] Unable to find any valuable Window provider.
I/python ( 1278): sdl2 - UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 0: invalid start byte
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/site-packages/kivy/core/__init__.py", line 67, in core_select_lib
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 140, in __init__
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/site-packages/kivy/core/window/__init__.py", line 899, in __init__
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 291, in create_window
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/site-packages/kivy/core/window/__init__.py", line 1051, in create_window
I/python ( 1278): File "kivy/graphics/instructions.pyx", line 752, in kivy.graphics.instructions.RenderContext.__init__ (kivy/graphics/instructions.c:12419)
I/python ( 1278): File "kivy/graphics/shader.pyx", line 184, in kivy.graphics.shader.Shader.__init__ (kivy/graphics/shader.c:5479)
I/python ( 1278): File "kivy/graphics/shader.pyx", line 693, in kivy.graphics.shader.Shader.vs.__set__ (kivy/graphics/shader.c:12909)
I/python ( 1278): File "kivy/graphics/shader.pyx", line 555, in kivy.graphics.shader.Shader.build_vertex (kivy/graphics/shader.c:10642)
I/python ( 1278): File "kivy/graphics/shader.pyx", line 578, in kivy.graphics.shader.Shader.link_program (kivy/graphics/shader.c:10951)
I/python ( 1278): File "kivy/graphics/shader.pyx", line 632, in kivy.graphics.shader.Shader.get_program_log (kivy/graphics/shader.c:11648)
I/python ( 1278): File "/home/kivy/Desktop/build/.buildozer/android/platform/build/dists/eztunes/private/lib/python2.7/encodings/utf_8.py", line 16, in decode
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): *** Sending OSC Message.
I/python ( 1278): [">", 8808]
I/python ( 1278): *** End.
I/python ( 1278): [CRITICAL] [App ] Unable to get a Window, abort.
^C
wolfrage@wolfrage-GP62-2QE ~/0.Projects/EzTunes/installers/Android/Crystax_Py2 $ adb install -r EzTunes-0.2.0-debug.apk && adb logcat -c && adb logcat | grep -e "I s1" -e "I python" -e "I/s1" -e "I/python"
1294 KB/s (11429020 bytes in 8.623s)
pkg: /data/local/tmp/EzTunes-0.2.0-debug.apk
Success
I/python ( 1323): Initialize Python for Android
I/python ( 1323): Changing directory to the one provided by ANDROID_ARGUMENT
I/python ( 1323): /data/data/com.feralbytes.eztunes/files/app
I/python ( 1323): Preparing to initialize python
I/python ( 1323): crystax_python does not exist
I/python ( 1323): Initialized python
I/python ( 1323): AND: Init threads
I/python ( 1323): testing python print redirection
I/python ( 1323): Setting up python from ANDROID_PRIVATE
I/python ( 1323): ('Android path', ['/data/data/com.feralbytes.eztunes/files/app/lib/python27.zip', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/lib-dynload/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages/', '/data/data/com.feralbytes.eztunes/files/app'])
I/python ( 1323): ('os.environ is', {'ANDROID_APP_PATH': '/data/data/com.feralbytes.eztunes/files/app', 'EXTERNAL_STORAGE': '/storage/sdcard', 'LOOP_MOUNTPOINT': '/mnt/obb', 'ANDROID_SOCKET_zygote': '9', 'BOOTCLASSPATH': '/system/framework/core.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/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar', 'ANDROID_PROPERTY_WORKSPACE': '8,49152', 'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'ANDROID_STORAGE': '/storage', 'ANDROID_BOOTLOGO': '1', 'ANDROID_DATA': '/data', 'ANDROID_ASSETS': '/system/app', 'LD_LIBRARY_PATH': '/vendor/lib:/system/lib', 'PYTHONOPTIMIZE': '2', 'ANDROID_PRIVATE': '/data/data/com.feralbytes.eztunes/files', 'ANDROID_ENTRYPOINT': 'main.pyo', 'PYTHONPATH': '/data/data/com.feralbytes.eztunes/files/app:/data/data/com.feralbytes.eztunes/files/app/lib', 'ANDROID_UNPACK': '/data/data/com.feralbytes.eztunes/files/app', 'PYTHON_NAME': 'python', 'ANDROID_ROOT': '/system', 'PYTHONHOME': '/data/data/com.feralbytes.eztunes/files/app', 'ASEC_MOUNTPOINT': '/mnt/asec', 'ANDROID_ARGUMENT': '/data/data/com.feralbytes.eztunes/files/app'})
I/python ( 1323): ('Android kivy bootstrap done. __name__ is', '__main__')
I/python ( 1323): ['/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages', '/data/data/com.feralbytes.eztunes/files/app/lib/site-python']
I/python ( 1323): AND: Ran string
I/python ( 1323): Run user program, change dir and execute entrypoint
I/python ( 1323): Please wait well the user interface is initialized.
I/python ( 1323): ('OS =', 'Android', 'posix', 'linux4')
I/python ( 1323): ('FILE_DIR =', '/data/data/com.feralbytes.eztunes/files/app')
I/python ( 1323): ('APP_USER_DIR =', '/storage/sdcard/.FeralBytes/EzTunes')
I/python ( 1323): ('COMPANY_DIR =', '/storage/sdcard/.FeralBytes')
I/python ( 1323): ('COMPANY_USER_DIR =', '/storage/sdcard/.FeralBytes')
I/python ( 1323): Log Location=/data/data/com.feralbytes.eztunes/files/app/log.txt
I/python ( 1323): USER_DIR=/storage/sdcard | APP_USER_DIR=/storage/sdcard/.FeralBytes/EzTunes | APP_DIR=/data/data/com.feralbytes.eztunes/files/app | FILE_DIR=/data/data/com.feralbytes.eztunes/files/app | RESOURCES_DIR=/data/data/com.feralbytes.eztunes/files/app/resources | COMPANY_DIR=/storage/sdcard/.FeralBytes | TEMP_DIR=/data/data/com.feralbytes.eztunes/files/app | APP_TEMP_DIR=/data/data/com.feralbytes.eztunes/files/app | COMPANY_USER_DIR=/storage/sdcard/.FeralBytes
I/python ( 1323): [WARNING] [Config ] Older configuration version detected (0 instead of 19)
I/python ( 1323): [WARNING] [Config ] Upgrading configuration in progress.
I/python ( 1323): [DEBUG ] [Config ] Upgrading from 0 to 1
I/python ( 1323): [INFO ] [Logger ] Record log in /data/data/com.feralbytes.eztunes/files/app/.kivy/logs/kivy_17-09-27_0.txt
I/python ( 1323): [INFO ] [Kivy ] v1.10.0
I/python ( 1323): [INFO ] [Python ] v2.7.2 (default, Sep 4 2017, 18:37:00)
I/python ( 1323): [GCC 5.3 20151204]
I/python ( 1323): [INFO ] [OSC ] using <thread> for socket
I/python ( 1323): [INFO ] [Factory ] 194 symbols loaded
I/python ( 1323): [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
I/python ( 1323): [INFO ] [Window ] Provider: sdl2
I/python ( 1323): [INFO ] [GL ] Using the "OpenGL ES 2" graphics system
I/python ( 1323): [INFO ] [GL ] Backend used <gl>
I/python ( 1323): [INFO ] [GL ] OpenGL version <OpenGL ES 2.0 (4.5.0 NVIDIA 375.66)>
I/python ( 1323): [INFO ] [GL ] OpenGL vendor <Google (NVIDIA Corporation)>
I/python ( 1323): [INFO ] [GL ] OpenGL renderer <Android Emulator OpenGL ES Translator (GeForce GTX 950M/PCIe/SSE2)>
I/python ( 1323): [INFO ] [GL ] OpenGL parsed version: 2, 0
I/python ( 1323): [INFO ] [GL ] Texture max size <16384>
I/python ( 1323): [INFO ] [GL ] Texture max units <32>
I/python ( 1323): [INFO ] [Window ] auto add sdl2 input provider
I/python ( 1323): [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
I/python ( 1323): [INFO ] [OSC ] listening for Tuio on 127.0.0.1:8808
I/python ( 1323): [INFO ] [GL ] NPOT texture support is available
I/python ( 1323): [WARNING] [Base ] Unknown <android> provider
I/python ( 1323): [INFO ] [Base ] Start application main loop
I/python ( 1323): [ERROR ] [Base ] Failed to import "android" module. Could not remove android presplash.
I/python ( 1323): [INFO ] [Text ] Provider: sdl2
I/python ( 1323): [INFO ] [Loader ] using a thread pool of 2 workers
I/python ( 1345): Initialize Python for Android
I/python ( 1345): Changing directory to the one provided by ANDROID_ARGUMENT
I/python ( 1345): /data/data/com.feralbytes.eztunes/files/app
I/python ( 1345): Preparing to initialize python
I/python ( 1345): crystax_python does not exist
I/python ( 1345): Initialized python
I/python ( 1345): AND: Init threads
I/s1 ( 1345): testing python print redirection
I/python ( 1345): Setting up python from ANDROID_PRIVATE
I/s1 ( 1345): ('Android path', ['/data/data/com.feralbytes.eztunes/files/app/lib/python27.zip', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/lib-dynload/', '/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages/', '/data/data/com.feralbytes.eztunes/files/app'])
I/s1 ( 1345): ('os.environ is', {'ANDROID_APP_PATH': '/data/data/com.feralbytes.eztunes/files/app', 'EXTERNAL_STORAGE': '/storage/sdcard', 'LOOP_MOUNTPOINT': '/mnt/obb', 'PYTHON_SERVICE_ARGUMENT': '', 'ANDROID_SOCKET_zygote': '9', 'BOOTCLASSPATH': '/system/framework/core.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/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar', 'ANDROID_PROPERTY_WORKSPACE': '8,49152', 'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'ANDROID_STORAGE': '/storage', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ASSETS': '/system/app', 'LD_LIBRARY_PATH': '/vendor/lib:/system/lib', 'PYTHONOPTIMIZE': '2', 'ANDROID_PRIVATE': '/data/data/com.feralbytes.eztunes/files', 'ANDROID_ENTRYPOINT': 'service/service.py', 'PYTHONPATH': '/data/data/com.feralbytes.eztunes/files/app:/data/data/com.feralbytes.eztunes/files/app/lib', 'ANDROID_DATA': '/data', 'PYTHON_NAME': 's1', 'ANDROID_ROOT': '/system', 'PYTHONHOME': '/data/data/com.feralbytes.eztunes/files/app', 'ASEC_MOUNTPOINT': '/mnt/asec', 'ANDROID_ARGUMENT': '/data/data/com.feralbytes.eztunes/files/app'})
I/s1 ( 1345): ('Android kivy bootstrap done. __name__ is', '__main__')
I/s1 ( 1345): ['/data/data/com.feralbytes.eztunes/files/app/lib/python2.7/site-packages', '/data/data/com.feralbytes.eztunes/files/app/lib/site-python']
I/python ( 1345): AND: Ran string
I/python ( 1345): Run user program, change dir and execute entrypoint
I/s1 ( 1345): [INFO ] [Logger ] Record log in /data/data/com.feralbytes.eztunes/files/app/.kivy/logs/kivy_17-09-27_1.txt
I/s1 ( 1345): [INFO ] [Kivy ] v1.10.0
I/s1 ( 1345): [INFO ] [Python ] v2.7.2 (default, Sep 4 2017, 18:37:00)
I/s1 ( 1345): [GCC 5.3 20151204]
I/s1 ( 1345): [INFO ] [Audio ] Providers: audio_sdl2 (audio_ffpyplayer ignored)
I/s1 ( 1345): [INFO ] [OSC ] using <thread> for socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment