python-for-android: ImportError when the apk launches with SDL2 bootstrap, kivy and python3crystax

I do not know if it actually works, but in my case it does not work with android 5.0. And I’d like to know why 😃 (the apk works well with sdl2, Kivy, python 2)

...
I/python  ( 9904): Android kivy bootstrap done. __name__ is __main__
I/python  ( 9904): AND: Ran string
I/python  ( 9904): Run user program, change dir and execute entrypoint
I/python  ( 9904): main.py
I/python  ( 9904): [WARNING           ] [Config      ] Older configuration version detected (0 instead of 14)
I/python  ( 9904): [WARNING           ] [Config      ] Upgrading configuration in progress.
I/python  ( 9904): [INFO              ] [Logger      ] Record log in /data/data/org.hello.world/files/.kivy/logs/kivy_16-03-02_0.txt
I/python  ( 9904): [INFO              ] [Kivy        ] v1.9.2-dev0
I/python  ( 9904): [INFO              ] [Python      ] v3.5.0 (default, Dec 24 2015, 05:56:40) 
I/python  ( 9904): [GCC 5.3 20151204]
I/python  ( 9904):  Traceback (most recent call last):
I/python  ( 9904):    File "main.py", line 13, in <module>
I/python  ( 9904):      from kivy.app import App
I/python  ( 9904):    File "/data/data/org.hello.world/files/crystax_python/site-packages/kivy/app.py", line 319, in <module>
I/python  ( 9904):      from kivy.base import runTouchApp, stopTouchApp
I/python  ( 9904):    File "/data/data/org.hello.world/files/crystax_python/site-packages/kivy/base.py", line 30, in <module>
I/python  ( 9904):      from kivy.event import EventDispatcher
I/python  ( 9904):    File "/data/data/org.hello.world/files/crystax_python/site-packages/kivy/event.py", line 8, in <module>
I/python  ( 9904):      import kivy._event
I/python  ( 9904):  ImportError: dlopen failed: cannot locate symbol "PyErr_GivenExceptionMatches" referenced by "_event.so"...
I/python  ( 9904): Python for android ended.

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@M-mcgowan This bug does not appear on distributions based on Archlinux. The pull resquests that I proposed are not ideal because it must be placed in rather p4a. (To test you simply apply the above modif to your Kivy packages and Pyjnius (.local/share/python-for -android/packages/)) I reinstalled a distribution based on Debian but for now I do not own solution and that it works without modif on Archlinux distributions confuses me a little.