Hello,
i'm trying to package my kivy program to android for several days. I've downloaded and builded kivy and python-for-android from github.
My program which uses TabbedPanel perfectly run on Windows, Linux and even Android with the Kivy Launcher downloaded from the market. When I install the .apk on my phone it crashes with the following log:
I/python (24213): Initialize Python for Android
I/python (24213): ['/data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages', '/data/data/com.karesys.chirotouch/files/lib/site-python']
I/python (24213): Android path ['/data/data/com.karesys.chirotouch/files/lib/python27.zip', '/data/data/com.karesys.chirotouch/files/lib/python2.7', '/data/data/com.karesys.chirotouch/files/lib/python2.7/lib-dynload', '/data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages', '/mnt/sdcard/com.karesys.chirotouch', '/data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/PIL']
I/python (24213): Android kivy bootstrap done. __name__ is __main__
I/python (24213): Run user program, change dir and execute main.py
I/python (24213): [INFO ] Kivy v1.4.2-dev
I/python (24213): [INFO ] [Logger ] Record log in /mnt/sdcard/com.karesys.chirotouch/.kivy/logs/kivy_12-10-30_1.txt
I/python (24213): [INFO ] [Factory ] 125 symbols loaded
I/python (24213): [DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
I/python (24213): [DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
I/python (24213): [DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
I/python (24213): /data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/kivy/core/image/img_pygame.py:11: RuntimeWarning: import cdrom: No module named cdrom
I/python (24213): (ImportError: No module named cdrom)
I/python (24213): [DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
I/python (24213): [DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=60s
I/python (24213): [INFO ] [Text ] using <pygame> as text provider
I/python (24213): [INFO ] [Window ] using <pygame> as window provider
I/libSDL (24213): SDL_SetVideoMode(): application requested mode 480x800
I/python (24213): [INFO ] [GL ] OpenGL version <OpenGL ES 2.0>
I/python (24213): [INFO ] [GL ] OpenGL vendor <ARM>
I/python (24213): [INFO ] [GL ] OpenGL renderer <Mali-400 MP>
I/python (24213): [INFO ] [GL ] Shading version <OpenGL ES GLSL ES 1.00>
I/python (24213): [INFO ] [GL ] Texture max size <4096>
I/python (24213): [INFO ] [GL ] Texture max units <8>
I/python (24213): [INFO ] [GL ] OpenGL parsed version: 2, 0
I/python (24213): [INFO ] [Shader ] fragment compiled successfully
I/python (24213): [INFO ] [Shader ] vertex compiled successfully
I/python (24213): [DEBUG ] [ImagePygame ] Load </data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/kivy/data/glsl/default.png>
I/python (24213): [INFO ] [Support ] Android install hooks
I/python (24213): [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
I/python (24213): [DEBUG ] [Cache ] register <kivy.loader> with limit=500, timeout=60s
I/python (24213): [INFO ] [Loader ] using <pygame> as thread loader
I/python (24213): [DEBUG ] [Cache ] register <textinput.label> with limit=None, timeout=60.0s
I/python (24213): [DEBUG ] [Cache ] register <textinput.width> with limit=None, timeout=60.0s
I/python (24213): [WARNING] [Audio ] Unable to use <gstreamer> as loader!
I/python (24213): [DEBUG ]
I/python (24213): Traceback (most recent call last):
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/__init__.py", line 97, in core_register_libs
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/audio/audio_gstreamer.py", line 6, in <module>
I/python (24213): ImportError: No module named pygst
I/python (24213): [DEBUG ] [Audio ] register SoundPygame
I/python (24213): [DEBUG ] [Atlas ] Load </data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme.atlas>
I/python (24213): [DEBUG ] [Atlas ] Need to load 1 images
I/python (24213): [DEBUG ] [Atlas ] Load </data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme-0.png>
I/python (24213): [DEBUG ] [ImagePygame ] Load </data/data/com.karesys.chirotouch/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme-0.png>
I/python (24213): Traceback (most recent call last):
I/python (24213): File "/home/zkaposi/k2/main.py", line 1048, in <module>
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/app.py", line 523, in run
I/python (24213): File "/home/zkaposi/k2/main.py", line 1008, in build
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/tabbedpanel.py", line 338, in __init__
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/floatlayout.py", line 66, in __init__
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/layout.py", line 61, in __init__
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/widget.py", line 130, in __init__
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/lang.py", line 1206, in apply
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/lang.py", line 1236, in _apply_rule
I/python (24213): File "/home/zkaposi/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/lang.py", line 673, in create_missing
I/python (24213): File "_event.pyx", line 306, in kivy._event.EventDispatcher.create_property (kivy/_event.c:3726)
I/python (24213): TypeError: Expected str, got unicodeI/python (24213): Python for android ended.
The python-for-android was built with the following command:
./distribute.sh -m "sqlite3 openssl pyopenssl lxml audiostream cymunk ffmpeg pil pyjnius twisted kivy" -f
The .apk created with this one:
./build.py --package com.karesys.chirotouch --name Chirotouch_alpha --version 0.02 --dir /home/zkaposi/k2 --orientation portrait --permission INTERNET --permission VIBRATE --icon /home/zkaposi/k2/diseased.png debug
Double checked my kv file for multi-byte characters but it isn't contains any. I've tried to create a simple apk with a TabbedPanel without any kv but that crashes too. As a last attempt kivy and python-for-android sources pulled today from master branches.
Do you have any idea about this problem?
Thanks,
legikaloz