ImportError android

15 views
Skip to first unread message

Bernát Koncz

unread,
Nov 28, 2016, 11:50:30 AM11/28/16
to Python For Android
hi!

I m trying to import activity from android. Code:

from android import activity

I m using webview as bootstrap and the following recipes: flask,pyjnius,android. When I try to run the app, I get the following error:


I/python: [INFO   ] [Logger      ] Record log in /data/user/0/org.example.myapp/files/.kivy/logs/kivy_16-11-28_0.txt 
I/python:    File "/data/user/0/org.example.myapp/files/environment.py", line 20, in <module>
I/python:    File "/data/user/0/org.example.myapp/files/lib/python2.7/site-packages/android/__init__.py", line 8, in <module>
I/python:  ImportError: dlopen failed: file offset for the library "/data/user/0/org.example.myapp/files/lib/python2.7/site-packages/android/_android.so" >= file size: 0 >= 0

thank you for your help

Bernat

Alexander Taylor

unread,
Dec 3, 2016, 7:47:12 PM12/3/16
to Python For Android
In this case I think this indicates a problem with your compilation or with the way the pythonpath is set, but I'm not sure what could be wrong exactly. Are you able to open an issue on the python-for-android github page with the full log?
Reply all
Reply to author
Forward
0 new messages