-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
We are currently using PIL on macOS inside a VENV to limit packaged. Today when we updated to 9.4.0 PIL stopped working on MacOS (these are x86_64 versions).
Steps to reproduce:
- setup venv (this was seen in python 3.9.4, 3.9.6, and also a 3.8.x version I don't recall)
- pip install Pillow
- python, from PIL import Image
(note, some parts of the path were trimmed)
python3
> from PIL import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".venv/lib/python3.9/site-packages/PIL/Image.py", line 103, in <module>
from . import _imaging as core
ImportError: dlopen(.venv/lib/python3.9/site-packages/PIL/_imaging.cpython-39-darwin.so, 2): Library not loaded: @loader_path/libXdmcp.6.dylib
Referenced from: .venv/lib/python3.9/site-packages/PIL/.dylibs/libxcb.1.1.0.dylib
Reason: no suitable image found. Did find:
.venv/lib/python3.9/site-packages/PIL/.dylibs/libXdmcp.6.dylib: cannot load 'libXdmcp.6.dylib' (load command 0x80000034 is unknown)
.venv/lib/python3.9/site-packages/PIL/.dylibs/libXdmcp.6.dylib: cannot load 'libXdmcp.6.dylib' (load command 0x80000034 is unknown)Have seen this on two different machines and it was reproducible on both after recreating a venv.