Skip to content

pillow fails on import #1325

@ghost

Description

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.

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