-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 9.0.1 crash: symbol not found in flat namespace '_xcb_connect' (Darwin M1) #6015
Comments
Quick aside: thanks for these kind words! How did you actually install Pillow? pip? |
poetry, actually.
…On Wed, Feb 2, 2022 at 11:21 PM Andrew Murray ***@***.***> wrote:
Works great as usual.
Quick aside: thanks for these kind words!
How did you actually install Pillow? pip?
—
Reply to this email directly, view it on GitHub
<#6015 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACAKRWDOXU7FNNFFWNY4E3UZIUJNANCNFSM5NODXJ2Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi! I confirm that installing I can also confirm it works (great as usual) with |
Does 9.0.1 work when installed from sdist/GitHub source? |
Pillow source changes: Wheel builder changes: |
I have experienced the same crash as @ajslater : the environment is exactly the same, installed Pillow==9.0.1 via pip and crashed, revert to 9.0.0 and fixed. In a newly created virtual environment I tried installing from source and it works fine as usual:
Did not crash on importing.
and all the external libraries on which
|
Actually, I think this is a change in the GHA image for MacOS, triggered by an update to some unrelated package on brew (IIRC that was the cause when this happened previously). Comparing the wheels, 9.0.1 has an additional dylib, and the X related dylibs have different permissions, suggesting they were not built by pillow-wheels but come from a different source: |
+1 cannot install matplotlib on M1 Mac this morning. Pinning to 9.0 works. Thanks. |
I have created python-pillow/pillow-wheels#249 with a potential fix. A build of Pillow with this change is available here if someone would like to test it (download wheels or wheels-latest, then pip install the appropriate wheel for your platform): https://github.com/nulano/pillow-wheels/actions/runs/1790264094 |
python-pillow/pillow-wheels#249 has been merged, and I've uploaded the M1 wheels to PyPI with a build number. This should be fixed now, but if someone else would like to confirm? |
I've had the same issue but 9.0.1-1 works for me 👍🏻 (FWIW, I'm not using Homebrew but MacPorts) |
Still seems broken for me. Cleared my poetry cache of the wheels before trying again just now. |
@ajslater could you try this and let us know if it works?
|
Hey that does work! Thanks for the suggestion, @radarhere. I used the poetry equivalent. Nice work @nulano |
Cool. I'm not familiar with poetry, but PyPI itself shouldn't have this much of a delay. PyPI won't let us replace the original wheel, only add additional wheels with different build numbers. So we have followed PyPI's plan for what to do in this situation, and it should stop the influx of new users experiencing this problem. |
Nuked all my pip & poetry caches, destroyed my venv and installed from pypi and now it works. Thanks all. |
|
Installed before the fix, and I'm using poetry. Here's what I used:
|
- Fix `pillow` error on ARM_64 - python-pillow/Pillow#6015.
What did you do?
Using Pillow 9.0.0 in python project. Works great as usual.
Installed Pillow 9.0.1
Ran a python program that imports PIL
What did you expect to happen?
Perform much the same as Pillow 9.0.0
What actually happened?
Crashes on import:
What are your OS, Python and Pillow versions?
Offending code
Reverting to 9.0.0 fixes the issue. Easy workaround for now.
hombrew has libxcb installed:
libxcb: stable 1.14 (bottled)
Could be a problem with the binary wheel for M1
The text was updated successfully, but these errors were encountered: