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

pillow fails on import #1325

Closed
ghost opened this issue Aug 10, 2018 · 1 comment
Closed

pillow fails on import #1325

ghost opened this issue Aug 10, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 10, 2018

I tried to use --requirements=python3crystax,pillow,sdl2,pysdl2,pyjnius since my existing codebase depends on pillow, and the APK build goes through fine but there seems to be some issue importing pillow at runtime:

08-10 14:35:37.179 12293 12318 I python  :   File "./myprg/button.py", line 5, in <module>
08-10 14:35:37.179 12293 12318 I python  :     import PIL.Image
08-10 14:35:37.179 12293 12318 I python  :   File "/mnt/expand/ccbe4e94-5878-4053-8382-d825486cc844/user/0/org.example.myapp/files/app/crystax_python/site-packages/PIL/__init__.py", line 27, in <module>
08-10 14:35:37.180 12293 12318 I python  :     __doc__ = __doc__.format(__version__)  # include version in docstring
08-10 14:35:37.180 12293 12318 I python  : AttributeError: 'NoneType' object has no attribute 'format'
08-10 14:35:37.258 12293 12318 I python  : Python for android ended.

I'm not sure what's going on, but since pil doesn't build at all (gives a dependency graph error), I'm not sure how to proceed from here. Since I have an existing codebase depending on PIL/pillow (with pillow being preferred), I can't easily use SDL Image instead.

@ghost
Copy link
Author

ghost commented Aug 10, 2018

Ok after some more digging, this seems to be a pillow bug: python-pillow/Pillow#3231 I'll try pinning an older version to work around it

@ghost ghost closed this as completed Aug 10, 2018
This issue was closed.
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

0 participants