joaoventura / pybridge

Reuse Python code in native Android applications
215 stars 56 forks source link

Question: How to import module based on c libraries #28

Closed OleksandrGrument closed 4 years ago

OleksandrGrument commented 5 years ago

Hello, i'm trying to add the module PIL that based on c libraries: Here i found the download link with the pil module and c classes for python 3 https://archlinuxarm.org/packages/aarch64/python-pillow

I'm adding them to the project and all time i'm getting error like No module named '_imaging' - Imaging.h is c file

But the c files is already in assets, how to properly configure it. Thanks for any help.

t0june commented 5 years ago

did you solve this problem?

joaoventura commented 4 years ago

C files must be compiled first.. This project now uses the python-for-android toolchain and they seem to have some recipes for compiling Pillow..