Skip to content

can't use Pillow with briefcase 0.3.3 on linux #458

@jgirardet

Description

@jgirardet

Describe the bug
running an app with pillow crashes with the following error

[helloworld] Starting app...

Traceback (most recent call last):
  File "/tmp/.mount_Hello_dZoYVA/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/tmp/.mount_Hello_dZoYVA/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/.mount_Hello_dZoYVA/usr/app/helloworld/__main__.py", line 4, in <module>
    main()
  File "/tmp/.mount_Hello_dZoYVA/usr/app/helloworld/app.py", line 9, in main
    from PIL import Image
  File "/tmp/.mount_Hello_dZoYVA/usr/app_packages/PIL/Image.py", line 94, in <module>
    from . import _imaging as core
ImportError: libxcb-2dfad6c3.so.1.1.0: ELF load command address/offset not properly aligned

To Reproduce
Steps to reproduce the behavior:

  1. clone https://github.com/jgirardet/briefpil
  2. create env, activate, pip install briefcase
  3. briefcase create && briefcase build && briefcase run
  4. See error

Environment:

  • Operating System: ubuntu 19.10
  • Python version: 3.8
  • Software versions:
    • Briefcase: 0.3.3
    • Pillow: 7.2

Additional context
adding line 184

:

so_folders.remove(self.appdir_path(app) / "usr/app_packages/PIL")

fixes the crash, I have no clear idea why.
full log: scratch_1.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA crash or error in behavior.linuxThe issue relates Linux support.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions