-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError android #943
Comments
No errors during compilation? Have you tried to unzip the apk and look if it's really present? Sometimes cleaning build/dists seems to be necessary. |
the first time i compile there is an error: Building android for armeabi-v7a RAN: /home/developer/.local/share/python-for-android/build/python-installs/unnamed_dist_2/bin/python.host setup.py build_ext -v STDOUT: STDERR: () RAN: /home/developer/.local/share/python-for-android/build/python-installs/unnamed_dist_2/bin/python.host setup.py build_ext -v STDOUT: STDERR: Traceback (most recent call last): cd /home/developer/.local/share/python-for-android/build/other_builds/android-genericndkbuild-python2-python2/armeabi-v7a/android && /home/developer/.local/share/python-for-android/build/python-installs/unnamed_dist_2/bin/python.host setup.py build_ext -v the second time i try to compile, it compiles without an error, so there might be the problem at building android |
I think this is currently working. The original error about size-zero files related to failing to load libpymodules.so, which was both fixed and is no longer an issue as we don't create that file any more. Please make a new issue if you do experience the same issue again. |
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
The text was updated successfully, but these errors were encountered: