question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No "pil" or "pillow" avaliable for Python 3

See original GitHub issue

I renamed this issue and contents a couple of times because I’m silly and confused about PIL & pillow. Anyway, the state is that none of them are available with python3crystax since PIL is hard-wired to python 2 and --requirements=pillow doesn’t work, since without a recipe it packages the wrong .so library (incorrect architecture). That means, effectively, no PIL/pillow for any python 3 app which is unfortunate 😢


old issue text:

The “pil” recipe is misguidedly hardwired to python 2:

 depends = ['python2', 'png', 'jpeg']

This breaks the build with Python 3:

# p4a apk --debug --private /my-app/ --orientation user --window --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python3crystax,pil,sdl2,pysdl2,pyjnius --arch=armeabi-v7a
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19)
[INFO]:    Requested API target 19 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Using Crystax NDK 10.3.2
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]:    Picking the latest gcc toolchain, here 5
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[ERROR]:   Didn't find any valid dependency graphs.
[ERROR]:   This means that some of your requirements pull in conflicting dependencies.
[ERROR]:   Exiting.

I suggest this should be fixed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 12, 2018

Well I suggest it would be a good point to close this once the pull request is actually merged! (I think that’s how it is commonly done in other projects: having both a ticket & associated pull request) However, if you think it should be closed now, I can close it if you want. It’s not like I wanna manage your project for you or something

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'PIL' in Python
The Python "ModuleNotFoundError: No module named 'PIL'" occurs when we forget to install the Pillow module before importing it or install it ...
Read more >
ImportError: No module named PIL - Stack Overflow
Pillow is a fork of PIL that has better packaging and supports Python 3. Can you change the accepted answer to one that...
Read more >
Installation - Pillow (PIL Fork) 9.3.0 documentation
Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL. Warning. Pillow >= 1.0 no longer supports import...
Read more >
ModuleNotFoundError: No module named 'PIL' - Python Help
ERROR: No matching distribution found for Pillow WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in ...
Read more >
[SOLVED] Python No Module Named Pil
PIL is a deprecated project, and no further support is provided. However, the Pillow project forked PIL to provide support for the latest...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found