Skip to content
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

The compiled APK crashes with error on _imaging.so: not found #335

Closed
GijsTimmers opened this issue Mar 12, 2015 · 3 comments
Closed

The compiled APK crashes with error on _imaging.so: not found #335

GijsTimmers opened this issue Mar 12, 2015 · 3 comments

Comments

@GijsTimmers
Copy link

I want to compile a Python program. I'm using the following steps to do so:

  1. git clone git://github.com/kivy/python-for-android
  2. cd python-for-android
  3. ./distribute.sh -m "openssl pil kivy mechanize pygments sqlite3" -f
  4. cd dist/default
  5. ./build.py --package org.me.myname --name "proof-of-concept" --version 1.3 --dir /home/me/Scripts/proof-of-concept/app-development --orientation portrait --window debug
  6. adb install bin/proof-of-concept-1.3-debug.apk

The app will then install successfully, but it crashes immediately after the presplash, with this error:

03-12 12:27:52.972: E/dalvikvm(9496): dlopen("/data/data/org.me.myname/files/lib/python2.7/lib-dynload/_imaging.so") failed: dlopen failed: library "/data/data/org.me.myname/files/lib/python2.7/lib-dynload/_imaging.so" not found

I don't know what this could be, I've searched online and read posts telling me to include pil, sqlite3, and openssl, but even when doing so, this error persists.

Could you help me?

@FeralBytes
Copy link
Contributor

I have two recommendations for you.

  1. Use Buildozer and see if the error persists when you are using Buildozer.
  2. We would want to see a full adb logcat log before even trying to look into it, but please don't post it as a comment, instead make a gist and then link to that gist in a comment here.
    Thanks.

@GijsTimmers
Copy link
Author

Hi, thank you for your quick answer. I tried using Buildozer, but I've been having another error there ([ant, debug]), so because of that, I moved to python-for-android.

I'll post the logcat as soon as this happens again, but since I have rewritten the code, it hasn't been happening again. I'm almost sure it has something to do with the imports in Python. I'll be closing this issue until it happens again, and when it does, I'll post a full logcat.

@BizzPerform
Copy link

Hi,

I see that too many people have this issue. I have the same issue, where do you prefer to have the output?

regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants