8000 Can't import PIL on python for android and kivy? · Issue #853 · kivy/python-for-android · GitHub
[go: up one dir, main page]

Skip to content
Can't import PIL on python for android and kivy? #853
Closed
@mnural

Description

@mnural

I've added the PIL/pillow to the requirements of the kivy buildozer.spec file
requirements = kivy, openssl, futures, requests, plyer, pyjnius, pillow
When i want to create an apk with this configuration, the apk package succesfully builds but if i install apk and run on my android phone, i'm getting this error in logcat:

I/python  (20188):  Traceback (most recent call last):
I/python  (20188):    File "/home/mnrl/teknik/.buildozer/android/app/main.py", line 32, in <module>
I/python  (20188):    File "/home/mnrl/teknik/.buildozer/android/app/_applibs/PIL/Image.py", line 67, in <module>
I/python  (20188):  ImportError: dlopen failed: "/data/data/org.tokerteknik.tokerteknik/files/_applibs/PIL/_imaging.so" is 64-bit instead of 32-bit
I/python  (20188): Python for android ended.

I think the problem related to architecture. I'm using ubuntu 16.04 64 bit and kivy buildozer installs 64 bit libraries with pip while installing requirements.
Briefly how can i import PIL on android with kivy buildozer or how to install 32 bit libraries of PIL on 64 bit system?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0