Closed jbeghtol closed 1 year ago
@radarhere Thanks for your continued help here!
I tried a few different versions of Pillow, both from PyPI and from the ZIP files in your above comment #issuecomment-1376921341
Surprisingly, here are my results:
For the full output log on a machine still running MacOS Mojave (10.14) for some 32 bit apps, see https://pastebin.com/M0S8AD4g
Basically, I:
python3 -m pip install --force-reinstall Pillow==9.3.0
(works fine)python3 -m pip install --force-reinstall Pillow==9.4.0
(gives error)python -m pip install Pillow-9.3.0-cp310-cp310-macosx_10_10_x86_64.whl
(works fine)python -m pip install Pillow-9.4.0-cp310-cp310-macosx_10_10_x86_64.whl
(gives error)python -m pip install 0-930/Pillow-9.3.0-cp310-cp310-macosx_10_10_x86_64.whl
(gives error)I'm a bit surprised. What could be the difference between Pillow-9.3.0-cp310-cp310-macosx_10_10_x86_64.whl
from PyPI and Pillow-9.3.0-cp310-cp310-macosx_10_10_x86_64.whl
from 0-930.zip
?
I did not create the wheels from @radarhere's comment, but I would assume 0-930.zip is a rerun of the 9.3.0 release. The fact that it fails suggests to me that the error is caused by a GitHub Actions update.
@macfreek, could you please test no-libxdmcp-wheels.zip
from my comment https://github.com/python-pillow/Pillow/issues/6862#issuecomment-1378193736, and Pillow-without-libxdmcp-or-358.zip
from @radarhere's latest comment https://github.com/python-pillow/Pillow/issues/6862#issuecomment-1380185885?
I did not create the wheels from @radarhere's comment, but I would assume 0-930.zip is a rerun of the 9.3.0 release.
Correct.
Interestingly, Pillow 9.3.0 wheels were generated on macOS 11, and Pillow 9.4.0 wheels were generated on macOS 12.
GitHub Actions has just finished a migration of the macos-latest
label from macos-11
to macos-12
: https://github.com/actions/runner-images/issues/6384
The wheels from my previous comment were also built on macOS 12.
@macfreek, could you please test
no-libxdmcp-wheels.zip
from my comment #6862 (comment), andPillow-without-libxdmcp-or-358.zip
from @radarhere's latest comment #6862 (comment)?
Done, both seem fine! At least I can run python3 -c "from PIL import Image"
or python -m PIL
without problems.
Thanks to all for testing, and to @nulano for figuring this one out.
I've uploaded new wheels to PyPI, so would anyone like to try uninstalling Pillow and then running python3 -m pip install Pillow
to confirm that this is now resolved?
@radarhere latest from PyPI works for me! Thanks!!
Hi @radarhere I am running with the same error as @yacineCo importing matplotlib. I am running on a Mac M1 Mac OS Sonoma 14.2.1. I can't run any visualisation library (like seaborn or Matplotlib) I get a similar message like the one displayed before, except my file is the libtiff.5.dylib
I try uninstalling the pillow library through Anaconda and it won't work, it stays running for ever, Would the pip method be effective here ( I was told not to mix pip and conda commands) this seems to be beyond my area of expertise, I am desperate and would appreciate any help!! thanks in advance!!
@Dario-Montes What version of Pillow do you have installed?
https://stackoverflow.com/a/46375644/1648883 suggests you can run conda list
and pip list
to check.
I get a similar message like the one displayed before, except my file is the libtiff.5.dylib
Could you post the complete error?
Hi @radarhere and @nulano thanks for the quick reply.
I have python version 3.11.0 Pillow version 10.0.1
and the complete error message is :
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[3], line 3
1 # Visualization
2 #%matplotlib inline
----> 3 import matplotlib.pyplot as plt
4 import seaborn as sns
5 import plotly.express as px
File ~/anaconda3/lib/python3.11/site-packages/matplotlib/__init__.py:161
157 from packaging.version import parse as parse_version
159 # cbook must import matplotlib only within function
160 # definitions, so it is safe to import from it here.
--> 161 from . import _api, _version, cbook, _docstring, rcsetup
162 from matplotlib.cbook import sanitize_sequence
163 from matplotlib._api import MatplotlibDeprecationWarning
File ~/anaconda3/lib/python3.11/site-packages/matplotlib/rcsetup.py:27
25 from matplotlib import _api, cbook
26 from matplotlib.cbook import ls_mapper
---> 27 from matplotlib.colors import Colormap, is_color_like
28 from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
29 from matplotlib._enums import JoinStyle, CapStyle
File ~/anaconda3/lib/python3.11/site-packages/matplotlib/colors.py:52
49 from numbers import Real
50 import re
---> 52 from PIL import Image
53 from PIL.PngImagePlugin import PngInfo
55 import matplotlib as mpl
File ~/anaconda3/lib/python3.11/site-packages/PIL/Image.py:82
73 MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3)
76 try:
77 # If the _imaging C module is not present, Pillow will not load.
78 # Note that other modules should not refer to _imaging directly;
79 # import Image and use the Image.core variable instead.
80 # Also note that Image.core is not a publicly documented interface,
81 # and should be considered private and subject to change.
---> 82 from . import _imaging as core
84 if __version__ != getattr(core, "PILLOW_VERSION", None):
85 msg = (
86 "The _imaging extension was built for another version of Pillow or PIL:\n"
87 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n"
88 f"Pillow version: {__version__}"
89 )
ImportError: dlopen(/Users/dario/anaconda3/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libtiff.5.dylib
Referenced from: <865BA80B-4617-3103-AC5E-6873C17F99FD> /Users/dario/anaconda3/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so
Reason: tried: '/Users/dario/anaconda3/lib/python3.11/site-packages/PIL/../../../libtiff.5.dylib' (no such file), '/Users/dario/anaconda3/lib/python3.11/site-packages/PIL/../../../libtiff.5.dylib' (no such file), '/Users/dario/anaconda3/bin/../lib/libtiff.5.dylib' (no such file), '/Users/dario/anaconda3/bin/../lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file, not in dyld cache)
Thanks again!
Is that from the conda command or the pip command? If it is from conda, please provide the full line from the command output (i.e. including the build and channel columns).
conda list
# packages in environment at /Users/dario/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2023.07 py311_1
abseil-cpp 20211102.0 hc377ac9_0
aiobotocore 2.7.0 py311hca03da5_0
aiohttp 3.9.0 py311h80987f9_0
aioitertools 0.7.1 pyhd3eb1b0_0
aiosignal 1.2.0 pyhd3eb1b0_0
alabaster 0.7.12 pyhd3eb1b0_0
anaconda-anon-usage 0.4.3 py311hd6b623d_100
anaconda-catalogs 0.2.0 py311hca03da5_0
anaconda-client 1.12.0 py311hca03da5_0
anaconda-cloud-auth 0.1.4 py311hca03da5_0
anaconda-navigator 2.5.1 py311hca03da5_0
anaconda-project 0.11.1 py311hca03da5_0
anyio 3.5.0 py311hca03da5_0
aom 3.6.0 h313beb8_0
appdirs 1.4.4 pyhd3eb1b0_0
applaunchservices 0.3.0 py311hca03da5_0
appnope 0.1.2 py311hca03da5_1001
appscript 1.1.2 py311h80987f9_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py311h80987f9_0
arrow 1.2.3 py311hca03da5_1
arrow-cpp 11.0.0 he3f21e0_2
astroid 2.14.2 py311hca03da5_0
astropy 5.3.4 py311hb9f6ed7_0
asttokens 2.0.5 pyhd3eb1b0_0
async-lru 2.0.4 py311hca03da5_0
atomicwrites 1.4.0 py_0
attrs 23.1.0 py311hca03da5_0
automat 20.2.0 py_0
autopep8 1.6.0 pyhd3eb1b0_1
aws-c-common 0.6.8 h80987f9_1
aws-c-event-stream 0.1.6 h313beb8_6
aws-checksums 0.1.11 h80987f9_2
aws-sdk-cpp 1.8.185 h4a942e0_0
babel 2.11.0 py311hca03da5_0
backcall 0.2.0 pyhd3eb1b0_0
backports 1.1 pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0
backports.tempfile 1.0 pyhd3eb1b0_1
backports.weakref 1.0.post1 py_1
bcrypt 3.2.0 py311h80987f9_1
beautifulsoup4 4.12.2 py311hca03da5_0
binaryornot 0.4.4 pyhd3eb1b0_1
black 23.11.0 py311hca03da5_0
blas 2.120 openblas conda-forge
blas-devel 3.9.0 20_osxarm64_openblas conda-forge
bleach 4.1.0 pyhd3eb1b0_0
blinker 1.6.2 py311hca03da5_0
blosc 1.21.3 h313beb8_0
bokeh 3.3.0 py311hb6e6a13_0
boltons 23.0.0 py311hca03da5_0
boost-cpp 1.81.0 hf96b251_0 conda-forge
botocore 1.31.64 py311hca03da5_0
bottleneck 1.3.5 py311ha0d4635_0
brotli 1.0.9 h1a28f6b_7
brotli-bin 1.0.9 h1a28f6b_7
brotli-python 1.0.9 py311h313beb8_7
bzip2 1.0.8 h620ffc9_4
c-ares 1.19.1 h80987f9_0
ca-certificates 2023.12.12 hca03da5_0
cached-property 1.5.2 py_0
cachetools 4.2.2 pyhd3eb1b0_0
cairo 1.16.0 h302bd0f_5
cctools 949.0.1 hc179dcd_25
cctools_osx-arm64 949.0.1 h332cad3_25
certifi 2023.11.17 py311hca03da5_0
cffi 1.16.0 py311h80987f9_0
cfitsio 4.2.0 h2f961c4_0 conda-forge
chardet 4.0.0 py311hca03da5_1003
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 8.1.7 py311hca03da5_0
click-plugins 1.1.1 pyhd3eb1b0_0
cligj 0.7.2 pyhd3eb1b0_0
cloudpickle 2.2.1 py311hca03da5_0
clyent 1.2.2 py311hca03da5_1
colorama 0.4.6 py311hca03da5_0
colorcet 3.0.1 py311hca03da5_0
comm 0.1.2 py311hca03da5_0
conda 23.7.4 py311hca03da5_0
conda-build 3.28.2 py311hca03da5_0
conda-content-trust 0.2.0 py311hca03da5_0
conda-index 0.3.0 py311hca03da5_0
conda-libmamba-solver 23.5.0 py311hca03da5_0
conda-pack 0.6.0 pyhd3eb1b0_0
conda-package-handling 2.2.0 py311hca03da5_0
conda-package-streaming 0.9.0 py311hca03da5_0
conda-repo-cli 1.0.75 py311hca03da5_0
conda-token 0.4.0 pyhd3eb1b0_0
conda-verify 3.4.2 py_1
confuse 1.5.0 pyhd3eb1b0_0
constantly 23.10.4 py311hca03da5_0
contourpy 1.2.0 py311h48ca7d4_0
cookiecutter 2.5.0 py311hca03da5_0
cryptography 41.0.3 py311h3c57c4d_0
cssselect 1.1.0 pyhd3eb1b0_0
cssutils 2.9.0 pyhd8ed1ab_0 conda-forge
curl 8.2.1 h449679c_0
cycler 0.11.0 pyhd3eb1b0_0
cytoolz 0.12.2 py311h80987f9_0
dask 2023.11.0 py311hca03da5_0
dask-core 2023.11.0 py311hca03da5_0
datasets 2.12.0 py311hca03da5_0
datashader 0.16.0 py311hca03da5_0
dav1d 1.2.1 h80987f9_0
debugpy 1.6.7 py311h313beb8_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
diff-match-patch 20200713 pyhd3eb1b0_0
dill 0.3.6 py311hca03da5_0
distributed 2023.11.0 py311hca03da5_0
docstring-to-markdown 0.11 py311hca03da5_0
docutils 0.18.1 py311hca03da5_3
emails 0.6 py_0 conda-forge
entrypoints 0.4 py311hca03da5_0
et_xmlfile 1.1.0 py311hca03da5_0
executing 0.8.3 pyhd3eb1b0_0
expat 2.5.0 h313beb8_0
fastavro 1.9.1 py311h80987f9_0
filelock 3.13.1 py311hca03da5_0
fiona 1.9.1 py311h6956b77_0
flake8 6.0.0 py311hca03da5_0
flask 2.2.5 py311hca03da5_0
fluidsynth 2.3.2 h167c2ca_0 conda-forge
fmt 9.1.0 h48ca7d4_0
font-ttf-dejavu-sans-mono 2.37 hd3eb1b0_0
font-ttf-inconsolata 2.001 hcb22688_0
font-ttf-source-code-pro 2.030 hd3eb1b0_0
font-ttf-ubuntu 0.83 h8b1ccd4_0
fontconfig 2.14.2 h82840c6_0 conda-forge
fonts-anaconda 1 h8fa9717_0
fonts-conda-ecosystem 1 hd3eb1b0_0
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.12.1 h1192e45_0
freexl 1.0.6 h1a28f6b_0
frozenlist 1.4.0 py311h80987f9_0
fsspec 2023.10.0 py311hca03da5_0
future 0.18.3 py311hca03da5_0
gdal 3.6.2 py311hb6e901d_4 conda-forge
gensim 4.3.0 py311h6956b77_0
geopandas 0.9.0 py_1
geopandas-base 0.9.0 py_1
geos 3.11.1 hb7217d7_0 conda-forge
geotiff 1.7.1 hdcdc974_6 conda-forge
gettext 0.21.1 h0186832_0 conda-forge
gflags 2.2.2 hc377ac9_0
giflib 5.2.1 h80987f9_3
glib 2.76.1 hb5ab8b9_0 conda-forge
glib-tools 2.76.1 hb5ab8b9_0 conda-forge
glog 0.5.0 hc377ac9_0
gmp 6.2.1 hc377ac9_3
gmpy2 2.1.2 py311h40f64dc_0
google-api-core 1.34.0 pyhd8ed1ab_0 conda-forge
google-api-core-grpc 1.34.0 hd8ed1ab_0 conda-forge
google-api-python-client 2.111.0 pyhd8ed1ab_0 conda-forge
google-auth 2.22.0 py311hca03da5_0
google-auth-httplib2 0.2.0 pyhd8ed1ab_0 conda-forge
google-auth-oauthlib 0.5.2 py311hca03da5_0
google-cloud-automl 2.12.0 pyhd8ed1ab_0 conda-forge
google-cloud-bigquery 2.1.0 pyhc8dfbb8_0 conda-forge
google-cloud-bigquery-core 2.1.0 pyhc8dfbb8_0 conda-forge
google-cloud-bigquery-storage 2.22.0 pyh1a96a4e_0 conda-forge
google-cloud-bigquery-storage-core 2.22.0 pyh1a96a4e_0 conda-forge
google-cloud-core 1.6.0 pyhd3eb1b0_0
google-crc32c 1.5.0 py311h80987f9_0
google-resumable-media 1.3.1 pyhd3eb1b0_1
googleapis-common-protos 1.56.4 py311hca03da5_0
graphite2 1.3.14 hc377ac9_1
greenlet 3.0.1 py311h313beb8_0
grpc-cpp 1.48.2 h877324c_0
grpcio 1.48.2 py311h877324c_0
grpcio-status 1.41.1 pyhd3eb1b0_0
gst-plugins-base 1.22.3 h514c7bf_0
gstreamer 1.22.3 h80987f9_0
h5py 3.8.0 nompi_py311hf81d9a4_100 conda-forge
harfbuzz 6.0.0 hddbc195_0 conda-forge
hdf4 4.2.15 h1a38d6a_5 conda-forge
hdf5 1.12.2 nompi_h8968d4b_100 conda-forge
heapdict 1.0.1 pyhd3eb1b0_0
holoviews 1.18.1 py311hca03da5_0
htmlmin 0.1.12 pyhd3eb1b0_1
httplib2 0.22.0 pyhd8ed1ab_0 conda-forge
huggingface_hub 0.17.3 py311hca03da5_0
hvplot 0.9.1 py311hca03da5_0
hyperlink 21.0.0 pyhd3eb1b0_0
icu 70.1 h6b3803e_0 conda-forge
idna 3.4 py311hca03da5_0
imagecodecs-lite 2019.12.3 py311hb49d859_7 conda-forge
imagehash 4.3.1 py311hca03da5_0
imageio 2.31.4 py311hca03da5_0
imagesize 1.4.1 py311hca03da5_0
imap-tools 1.5.0 pyhd8ed1ab_1 conda-forge
imbalanced-learn 0.11.0 py311hca03da5_1
importlib-metadata 7.0.0 py311hca03da5_1
importlib_metadata 7.0.0 hd3eb1b0_1
incremental 21.3.0 pyhd3eb1b0_0
inflection 0.5.1 py311hca03da5_0
iniconfig 1.1.1 pyhd3eb1b0_0
intake 0.6.8 py311hca03da5_0
intervaltree 3.1.0 pyhd3eb1b0_0
ipykernel 6.25.0 py311hb6e6a13_0
ipython 8.15.0 py311hca03da5_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 8.0.4 py311hca03da5_0
isort 5.9.3 pyhd3eb1b0_0
itemadapter 0.3.0 pyhd3eb1b0_0
itemloaders 1.0.4 pyhd3eb1b0_1
itsdangerous 2.0.1 pyhd3eb1b0_0
jaraco.classes 3.2.1 pyhd3eb1b0_0
jedi 0.18.1 py311hca03da5_1
jellyfish 1.0.1 py311h15d1925_0
jinja2 3.1.2 py311hca03da5_0
jmespath 1.0.1 py311hca03da5_0
joblib 1.2.0 py311hca03da5_0
jpeg 9e h80987f9_1
jq 1.6 h1a28f6b_1
json-c 0.16 h1a28f6b_0
json5 0.9.6 pyhd3eb1b0_0
jsonpatch 1.32 pyhd3eb1b0_0
jsonpointer 2.1 pyhd3eb1b0_0
jsonschema 4.19.2 py311hca03da5_0
jsonschema-specifications 2023.7.1 py311hca03da5_0
jupyter 1.0.0 py311hca03da5_8
jupyter-lsp 2.2.0 py311hca03da5_0
jupyter_client 8.6.0 py311hca03da5_0
jupyter_console 6.6.3 py311hca03da5_0
jupyter_core 5.5.0 py311hca03da5_0
jupyter_events 0.8.0 py311hca03da5_0
jupyter_server 2.10.0 py311hca03da5_0
jupyter_server_terminals 0.4.4 py311hca03da5_1
jupyterlab 4.0.8 py311hca03da5_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.25.1 py311hca03da5_0
jupyterlab_widgets 3.0.9 py311hca03da5_0
kealib 1.5.0 hfd766a6_0 conda-forge
keyring 23.13.1 py311hca03da5_0
kiwisolver 1.4.4 py311h313beb8_0
krb5 1.20.1 h8380606_1
lame 3.100 h1a28f6b_0
lazy-object-proxy 1.6.0 py311h80987f9_0
lazy_loader 0.3 py311hca03da5_0
lcms2 2.12 hba8e193_0
ld64 530 hb29bf3f_25
ld64_osx-arm64 530 h001ce53_25
ldid 2.1.5 h20b2a84_3
lerc 4.0.0 h9a09cb3_0 conda-forge
libarchive 3.6.2 h09f0540_1
libavif 0.11.1 h80987f9_0
libblas 3.9.0 20_osxarm64_openblas conda-forge
libbrotlicommon 1.0.9 h1a28f6b_7
libbrotlidec 1.0.9 h1a28f6b_7
libbrotlienc 1.0.9 h1a28f6b_7
libcblas 3.9.0 20_osxarm64_openblas conda-forge
libclang 14.0.6 default_h1b80db6_1
libclang13 14.0.6 default_h24352ff_1
libcrc32c 1.1.2 hc377ac9_0
libcurl 8.2.1 h0f1d93c_0
libcxx 16.0.6 h4653b0c_0 conda-forge
libdeflate 1.17 h80987f9_1
libedit 3.1.20230828 h80987f9_0
libev 4.33 h1a28f6b_1
libevent 2.1.12 hf27765b_0
libffi 3.4.4 hca03da5_0
libflac 1.4.3 hb765f3a_0 conda-forge
libgdal 3.6.2 h7cf1837_4 conda-forge
libgfortran 5.0.0 13_2_0_hd922786_1 conda-forge
libgfortran5 13.2.0 hf226fd6_1 conda-forge
libglib 2.76.1 h4646484_0 conda-forge
libiconv 1.17 h0d3ecfb_2 conda-forge
libkml 1.3.0 hc4d7c42_7
liblapack 3.9.0 20_osxarm64_openblas conda-forge
liblapacke 3.9.0 20_osxarm64_openblas conda-forge
liblief 0.12.3 h313beb8_0
libllvm14 14.0.6 h7ec7a93_3
libmad 0.15.1b h1a8c8d9_1001 conda-forge
libmamba 1.4.1 h48ca7d4_0
libmambapy 1.4.1 py311h48ca7d4_0
libnetcdf 4.8.1 nompi_h2510be2_106 conda-forge
libnghttp2 1.52.0 h10c0552_1
libogg 1.3.5 h1a28f6b_1
libopenblas 0.3.25 openmp_h6c19121_0 conda-forge
libopus 1.3.1 h27ca646_1 conda-forge
libpng 1.6.39 h80987f9_0
libpq 15.1 hbce9e56_3 conda-forge
libprotobuf 3.20.3 h514c7bf_0
librttopo 1.1.0 h844f84d_12 conda-forge
libsndfile 1.2.2 h28b71a8_0 conda-forge
libsodium 1.0.18 h1a28f6b_0
libsolv 0.7.27 h9e231a4_0 conda-forge
libspatialindex 1.9.3 hc377ac9_0
libspatialite 5.0.1 h14115fc_23 conda-forge
libsqlite 3.44.2 h091b4b1_0 conda-forge
libssh2 1.10.0 h449679c_2
libthrift 0.15.0 h169de6a_2
libtiff 4.5.0 h5dffbdd_2 conda-forge
libuv 1.44.2 h80987f9_0
libvorbis 1.3.7 h1a28f6b_0
libwebp 1.3.2 ha3663a8_0
libwebp-base 1.3.2 h80987f9_0
libxml2 2.10.3 h67585b2_4 conda-forge
libxslt 1.1.37 h1bd8bc4_0 conda-forge
libzip 1.9.2 h96606af_1 conda-forge
libzlib 1.2.13 h53f4e23_5 conda-forge
linkify-it-py 2.0.0 py311hca03da5_0
llvm-openmp 17.0.6 hcd81f8e_0 conda-forge
llvmlite 0.41.0 py311h514c7bf_0
locket 1.0.0 py311hca03da5_0
lxml 4.9.2 py311h80987f9_0
lz4 4.3.2 py311h80987f9_0
lz4-c 1.9.4 h313beb8_0
mapclassify 2.5.0 py311hca03da5_0
markdown 3.4.1 py311hca03da5_0
markdown-it-py 2.2.0 py311hca03da5_1
markupsafe 2.1.3 py311h80987f9_0
matplotlib 3.8.2 py311ha1ab1f8_0 conda-forge
matplotlib-base 3.8.2 py311hfdba5f6_0 conda-forge
matplotlib-inline 0.1.6 py311hca03da5_0
mccabe 0.7.0 pyhd3eb1b0_0
mdit-py-plugins 0.3.0 py311hca03da5_0
mdurl 0.1.0 py311hca03da5_0
menuinst 2.0.1 py311hca03da5_1
missingno 0.4.2 pyhd3eb1b0_1
mistune 2.0.4 py311hca03da5_0
more-itertools 10.1.0 py311hca03da5_0
mpc 1.1.0 h8c48613_1
mpfr 4.0.2 h695f6f0_1
mpg123 1.31.3 hb7217d7_0 conda-forge
mpmath 1.3.0 py311hca03da5_0
msgpack-python 1.0.3 py311h48ca7d4_0
multidict 6.0.4 py311h80987f9_0
multipledispatch 0.6.0 py311hca03da5_0
multiprocess 0.70.14 py311hca03da5_0
munch 2.5.0 pyhd3eb1b0_0
munkres 1.1.4 py_0
mypy_extensions 1.0.0 py311hca03da5_0
mysql-common 8.0.32 hab468bb_0 conda-forge
mysql-libs 8.0.32 hea58576_0 conda-forge
navigator-updater 0.4.0 py311hca03da5_1
nbclient 0.8.0 py311hca03da5_0
nbconvert 7.10.0 py311hca03da5_0
nbformat 5.9.2 py311hca03da5_0
ncurses 6.4 h313beb8_0
nest-asyncio 1.5.6 py311hca03da5_0
networkx 3.1 py311hca03da5_0
ninja 1.10.2 hca03da5_5
ninja-base 1.10.2 h525c30c_5
nltk 3.8.1 py311hca03da5_0
notebook 7.0.6 py311hca03da5_0
notebook-shim 0.2.3 py311hca03da5_0
nspr 4.35 h313beb8_0
nss 3.89.1 h313beb8_0
numba 0.58.1 py311h7aedaa7_0
numexpr 2.8.7 py311h6dc990b_0
numpy 1.26.3 py311he598dae_0
numpy-base 1.26.3 py311hfbfe69c_0
numpydoc 1.5.0 py311hca03da5_0
oauthlib 3.2.2 py311hca03da5_0
oniguruma 6.9.7.1 h1a28f6b_0
openblas 0.3.25 openmp_h55c453e_0 conda-forge
openjpeg 2.5.0 hbc2ba62_2 conda-forge
openpyxl 3.0.10 py311h80987f9_0
openssl 1.1.1w h1a28f6b_0
opusfile 0.12 h49ade9c_2 conda-forge
orc 1.7.4 hdca1487_1
overrides 7.4.0 py311hca03da5_0
packaging 23.1 py311hca03da5_0
pandas 2.1.4 py311h7aedaa7_0
pandas-profiling 2.9.0 pyhd3eb1b0_0
pandocfilters 1.5.0 pyhd3eb1b0_0
panel 1.3.1 py311hca03da5_0
param 2.0.1 py311hca03da5_0
parsel 1.6.0 py311hca03da5_0
parso 0.8.3 pyhd3eb1b0_0
partd 1.4.1 py311hca03da5_0
patch 2.7.6 h1a28f6b_1001
pathlib 1.0.1 pyhd3eb1b0_1
pathspec 0.10.3 py311hca03da5_0
patsy 0.5.3 py311hca03da5_0
pcre2 10.40 hb34f9b4_0 conda-forge
pep8 1.7.1 py311hca03da5_1
pexpect 4.8.0 pyhd3eb1b0_3
phik 0.12.3 py311h48ca7d4_0
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 10.0.1 py311h3b245a6_0
pip 23.3.1 py311hca03da5_0
pixman 0.40.0 h1a28f6b_0
pkce 1.0.3 py311hca03da5_0
pkginfo 1.9.6 py311hca03da5_0
platformdirs 3.10.0 py311hca03da5_0
plotly 5.9.0 py311hca03da5_0
pluggy 1.0.0 py311hca03da5_1
ply 3.11 py311hca03da5_0
poppler 22.12.0 h52f4003_3
poppler-data 0.4.11 hca03da5_1
portaudio 19.6.0 h13dd4ca_9 conda-forge
portmidi 2.0.4 h13dd4ca_2 conda-forge
postgresql 9.6.6 h65cfe13_1
premailer 3.10.0 pyhd8ed1ab_0 conda-forge
proj 9.1.1 h13f728c_2 conda-forge
prometheus_client 0.14.1 py311hca03da5_0
prompt-toolkit 3.0.43 py311hca03da5_0
prompt_toolkit 3.0.43 hd3eb1b0_0
protego 0.1.16 py_0
proto-plus 1.23.0 pyhd8ed1ab_0 conda-forge
protobuf 3.20.3 py311h313beb8_0
psutil 5.9.0 py311h80987f9_0
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
py-lief 0.12.3 py311h313beb8_0
pyarrow 11.0.0 py311h7575258_1
pyasn1 0.4.8 pyhd3eb1b0_0
pyasn1-modules 0.2.8 py_0
pybind11-abi 4 hd3eb1b0_1
pycodestyle 2.10.0 py311hca03da5_0
pycosat 0.6.6 py311h80987f9_0
pycparser 2.21 pyhd3eb1b0_0
pyct 0.5.0 py311hca03da5_0
pycurl 7.45.2 py311h449679c_0
pydantic 1.10.12 py311h80987f9_1
pydispatcher 2.0.5 py311hca03da5_2
pydocstyle 6.3.0 py311hca03da5_0
pyerfa 2.0.0 py311h80987f9_0
pyflakes 3.0.1 py311hca03da5_0
pygame 2.2.0 py311haad0d3d_0 conda-forge
pygments 2.15.1 py311hca03da5_1
pyjwt 2.4.0 py311hca03da5_0
pylint 2.16.2 py311hca03da5_0
pylint-venv 2.3.0 py311hca03da5_0
pyls-spyder 0.4.0 pyhd3eb1b0_0
pyobjc-core 9.0 py311h3eb5a62_1
pyobjc-framework-cocoa 9.0 py311hb094c41_0
pyobjc-framework-coreservices 9.0 py311hdd8dd1f_0
pyobjc-framework-fsevents 9.0 py311hca03da5_0
pyodbc 4.0.39 py311h313beb8_0
pyopenssl 23.2.0 py311hca03da5_0
pyparsing 3.0.9 py311hca03da5_0
pypdf2 2.10.5 py311hca03da5_0
pyproj 3.5.0 py311hef8691e_0 conda-forge
pyqt 5.15.10 py311h313beb8_0
pyqt5-sip 12.13.0 py311h80987f9_0
pyqtwebengine 5.15.10 py311h313beb8_0
pysocks 1.7.1 py311hca03da5_0
pytables 3.7.0 py311h887c5ef_3 conda-forge
pytest 7.4.0 py311hca03da5_0
python 3.11.0 hf452327_1_cpython conda-forge
python-dateutil 2.8.2 pyhd3eb1b0_0
python-dotenv 0.21.0 py311hca03da5_0
python-fastjsonschema 2.16.2 py311hca03da5_0
python-json-logger 2.0.7 py311hca03da5_0
python-libarchive-c 2.9 pyhd3eb1b0_1
python-lmdb 1.4.1 py311h313beb8_0
python-lsp-black 1.2.1 py311hca03da5_0
python-lsp-jsonrpc 1.0.0 pyhd3eb1b0_0
python-lsp-server 1.7.2 py311hca03da5_0
python-slugify 5.0.2 pyhd3eb1b0_0
python-snappy 0.6.1 py311h313beb8_0
python-tzdata 2023.3 pyhd3eb1b0_0
python-xxhash 2.0.2 py311h80987f9_1
python.app 3 py311h80987f9_0
python_abi 3.11 4_cp311 conda-forge
pytoolconfig 1.2.6 py311hca03da5_0
pytorch 2.1.0 gpu_mps_py311hf322ab5_100
pytz 2023.3.post1 py311hca03da5_0
pyviz_comms 3.0.0 py311hca03da5_0
pywavelets 1.4.1 py311h80987f9_0
pyyaml 6.0.1 py311h80987f9_0
pyzmq 25.1.0 py311h313beb8_0
qdarkstyle 3.0.2 pyhd3eb1b0_0
qstylizer 0.2.2 py311hca03da5_0
qt-main 5.15.8 hfe8d25c_6 conda-forge
qt-webengine 5.15.9 h2903aaf_7
qtawesome 1.2.2 py311hca03da5_0
qtconsole 5.4.2 py311hca03da5_0
qtpy 2.4.1 py311hca03da5_0
queuelib 1.6.2 py311hca03da5_0
re2 2022.04.01 hc377ac9_0
readline 8.2 h1a28f6b_0
referencing 0.30.2 py311hca03da5_0
regex 2023.10.3 py311h80987f9_0
reproc 14.2.4 hc377ac9_1
reproc-cpp 14.2.4 hc377ac9_1
requests 2.31.0 py311hca03da5_0
requests-file 1.5.1 pyhd3eb1b0_0
requests-oauthlib 1.3.0 py_0
requests-toolbelt 1.0.0 py311hca03da5_0
responses 0.13.3 pyhd3eb1b0_0
rfc3339-validator 0.1.4 py311hca03da5_0
rfc3986-validator 0.1.1 py311hca03da5_0
rich 13.3.5 py311hca03da5_0
rope 1.7.0 py311hca03da5_0
rpds-py 0.10.6 py311hf0e4da2_0
rsa 4.7.2 pyhd3eb1b0_1
rtree 1.0.1 py311hca03da5_0
ruamel.yaml 0.17.21 py311h80987f9_0
ruamel_yaml 0.17.21 py311h80987f9_0
s3fs 2023.10.0 py311hca03da5_0
safetensors 0.4.0 py311h62f922a_0
scikit-image 0.20.0 py311h313beb8_0
scikit-learn 1.2.2 py311h313beb8_1
scipy 1.11.4 py311hc76d9b0_0
scrapy 2.8.0 py311hca03da5_0
sdl2 2.28.5 h965bd2d_0 conda-forge
sdl2_image 2.6.3 hb71b326_0 conda-forge
sdl2_mixer 2.6.3 ha23d361_0 conda-forge
sdl2_ttf 2.20.2 h21f6021_0 conda-forge
seaborn 0.12.2 py311hca03da5_0
semver 2.13.0 pyhd3eb1b0_0
send2trash 1.8.2 py311hca03da5_0
service_identity 18.1.0 pyhd3eb1b0_1
setuptools 68.0.0 py311hca03da5_0
shapely 2.0.1 py311h24f10cc_0 conda-forge
sip 6.7.12 py311h313beb8_0
six 1.16.0 pyhd3eb1b0_1
sleef 3.5.1 h80987f9_2
smart_open 5.2.1 py311hca03da5_0
snappy 1.1.10 h313beb8_1
sniffio 1.2.0 py311hca03da5_1
snowballstemmer 2.2.0 pyhd3eb1b0_0
sortedcontainers 2.4.0 pyhd3eb1b0_0
soupsieve 2.5 py311hca03da5_0
sphinx 5.0.2 py311hca03da5_0
sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0
sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0
spyder 5.4.3 py311hca03da5_1
spyder-kernels 2.4.4 py311hca03da5_0
sqlalchemy 2.0.21 py311h80987f9_0
sqlite 3.41.2 h80987f9_0
stack_data 0.2.0 pyhd3eb1b0_0
statsmodels 0.14.0 py311hb9f6ed7_0
sympy 1.12 py311hca03da5_0
tabulate 0.9.0 py311hca03da5_0
tangled-up-in-unicode 0.2.0 py311hca03da5_0
tapi 1100.0.11 h8754e6a_1
tbb 2021.8.0 h48ca7d4_0
tbb4py 2021.8.0 py311h48ca7d4_0
tblib 1.7.0 pyhd3eb1b0_0
tenacity 8.2.2 py311hca03da5_0
terminado 0.17.1 py311hca03da5_0
text-unidecode 1.3 pyhd3eb1b0_0
textdistance 4.2.1 pyhd3eb1b0_0
threadpoolctl 2.2.0 pyh0d69192_0
three-merge 0.1.1 pyhd3eb1b0_0
tifffile 2020.6.3 py_0 conda-forge
tiledb 2.13.2 hc7ac4c9_0 conda-forge
tinycss2 1.2.1 py311hca03da5_0
tk 8.6.12 hb8d0fd4_0
tldextract 3.2.0 pyhd3eb1b0_0
tokenizers 0.13.2 py311h3dd52b7_1
toml 0.10.2 pyhd3eb1b0_0
tomlkit 0.11.1 py311hca03da5_0
toolz 0.12.0 py311hca03da5_0
tornado 6.3.3 py311h80987f9_0
tqdm 4.65.0 py311hb6e6a13_0
traitlets 5.7.1 py311hca03da5_0
transformers 4.32.1 py311hca03da5_0
twisted 22.10.0 py311h80987f9_0
typing-extensions 4.7.1 py311hca03da5_0
typing_extensions 4.7.1 py311hca03da5_0
tzdata 2023d h04d1e81_0
uc-micro-py 1.0.1 py311hca03da5_0
ujson 5.4.0 py311h313beb8_0
unidecode 1.2.0 pyhd3eb1b0_0
unixodbc 2.3.11 h1a28f6b_0
uriparser 0.9.7 h80987f9_0
uritemplate 4.1.1 pyhd8ed1ab_0 conda-forge
urllib3 1.26.18 py311hca03da5_0
utf8proc 2.6.1 h1a28f6b_0
visions 0.5.0 pyhd3eb1b0_0
w3lib 1.21.0 pyhd3eb1b0_0
watchdog 2.1.6 py311h80987f9_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py311hca03da5_1
websocket-client 0.58.0 py311hca03da5_4
werkzeug 2.2.3 py311hca03da5_0
whatthepatch 1.0.2 py311hca03da5_0
wheel 0.38.4 py311hca03da5_0
widgetsnbextension 4.0.5 py311hca03da5_0
wrapt 1.14.1 py311h80987f9_0
wurlitzer 3.0.2 py311hca03da5_0
xarray 2023.6.0 py311hca03da5_0
xerces-c 3.2.4 h627aa08_1 conda-forge
xlwings 0.29.1 py311hca03da5_0
xxhash 0.8.0 h1a28f6b_3
xyzservices 2022.9.0 py311hca03da5_1
xz 5.4.5 h80987f9_0
yaml 0.2.5 h1a28f6b_0
yaml-cpp 0.7.0 hc377ac9_1
yapf 0.31.0 pyhd3eb1b0_0
yarl 1.9.3 py311h80987f9_0
zeromq 4.3.4 hc377ac9_0
zict 3.0.0 py311hca03da5_0
zipp 3.17.0 py311hca03da5_0
zlib 1.2.13 h53f4e23_5 conda-forge
zope 1.0 py311hca03da5_1
zope.interface 5.4.0 py311h80987f9_0
zstandard 0.19.0 py311h80987f9_0
zstd 1.5.5 hd90d995_0
It looks like you've got libtiff installed from the conda-forge channel, but Pillow from the default channel. It is likely not a good idea to mix channels. See e.g. https://stackoverflow.com/a/67226436/1648883
Looking at previous issues (e.g. https://github.com/python-pillow/Pillow/issues/7494#issuecomment-1778874970), something like conda install --channel conda-forge pillow
might work to fix your issue. (in general, there have been many issue reports here for the default conda build, but I don't recall seeing any with the conda-forge build of Pillow).
I'm getting a similar error on macOS 10.10, with Python 3.12 and pillow==10.2.0
$ python3 -c "from PIL import Image"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/just/code/git/drawbot/venv312/lib/python3.12/site-packages/PIL/Image.py", line 84, in <module>
from . import _imaging as core
ImportError: dlopen(/Users/just/code/git/drawbot/venv312/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so, 2): Library not loaded: @loader_path/libXau.6.0.0.dylib
Referenced from: /Users/just/code/git/drawbot/venv312/lib/python3.12/site-packages/PIL/.dylibs/libxcb.1.1.0.dylib
Reason: no suitable image found. Did find:
/Users/just/code/git/drawbot/venv312/lib/python3.12/site-packages/PIL/.dylibs/libXau.6.0.0.dylib: cannot load 'libXau.6.0.0.dylib' (load command 0x80000034 is unknown)
/Users/just/code/git/drawbot/venv312/lib/python3.12/site-packages/PIL/.dylibs/libXau.6.0.0.dylib: cannot load 'libXau.6.0.0.dylib' (load command 0x80000034 is unknown)
Now, 10.10 is truly ancient, so perhaps this is to be expected by now? What is the lowest macOS version that Pillow is expected to work on?
The wheels are listed as "macosx_10_10", so they should still work on macOS 10.10.
It would be interesting to know - does Pillow 10.1.0 work for you?
My first thought would be my original solution to this - downgrading libXau to 1.0.10. I'm put together a wheel with that change - if you try installing pillow-10.3.0.dev0-cp312-cp312-macosx_10_10_x86_64.whl.zip, does that work?
Ha, Pillow 10.1.0 indeed works on 10.10!
But I'm afraid I'm getting the same error with your 10.3.0.dev0
wheel.
Thanks. We switched to using cibuildwheel
in Pillow 10.2.0, so that sounds like the cause.
My next attempts are
CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=10.10
- pillow-10.3.0.dev0-cp312-cp312-macosx_10_10_x86_64.whl.zipApologies that this might take quite a bit of trial and error. I don't have access to a macOS 10.10 machine, and GitHub Actions doesn't provide that environment either.
The first one does not work, the second one does work indeed.
Apologies that this might take quite a bit of trial and error. I don't have access to a macOS 10.10 machine, and GitHub Actions doesn't provide that environment either.
No worries, thanks for taking b/w compatibility seriously, and I'm glad I can help testing with my old old computer.
Ok, I found that libxau was install by brew, and this one removes it and builds our own version instead - pillow-10.3.0.dev0-cp312-cp312-macosx_10_10_x86_64.whl.zip
this one removes it and builds our own version instead
Seems to work!
Thanks. I've created #7764 to fix this for the next Pillow release.
If you would like a working wheel for a stable version of Pillow, here you go - pillow-10.2.0-cp312-cp312-macosx_10_10_x86_64.whl.zip
Thank you so much! I'm so happy Pillow exists: I've been using PIL literally for decades.
The missing libXau.dylib problem in Pillow 10.2.0 also effects macOS 10.14.6. Here is the error using homebrew python3.10. Glad to hear it will be fixed in the next Pillow release. Pillow 10.0.1 does not have the problem.
$ uname -a
Darwin essex2.cgl.ucsf.edu 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64 x86_64
$ python3
Python 3.10.9 (main, Jan 6 2023, 01:54:24) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PIL
>>> from PIL import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/chimera/Library/Python/3.10/lib/python/site-packages/PIL/Image.py", line 84, in <module>
from . import _imaging as core
ImportError: dlopen(/Users/chimera/Library/Python/3.10/lib/python/site-packages/PIL/_imaging.cpython-310-darwin.so, 2): Library not loaded: @loader_path/libXau.6.0.0.dylib
Referenced from: /Users/chimera/Library/Python/3.10/lib/python/site-packages/PIL/.dylibs/libxcb.1.1.0.dylib
Reason: no suitable image found. Did find:
/Users/chimera/Library/Python/3.10/lib/python/site-packages/PIL/.dylibs/libXau.6.0.0.dylib: cannot load 'libXau.6.0.0.dylib' (load command 0x80000034 is unknown)
/Users/chimera/Library/Python/3.10/lib/python/site-packages/PIL/.dylibs/libXau.6.0.0.dylib: cannot load 'libXau.6.0.0.dylib' (load command 0x80000034 is unknown)
>>>
Hi everyone I am sorry for not replying before. I solved all my issues by uninstalling anaconda and re-installing it.
I have Mac OS 10.14 with python3.11 and pillow 10.2.0 and Matplotlib 3.8.3 I solved the problem by downgrading pillow to 9.0.0, as follows:
pip install pip-autoremove
pip-autoremove pillow -y
pip install pillow==9.0.0
@justvanrossum be aware that Python 3.12.6 has dropped support for macOS 10.10, and so the pre-built Python 3.12 Pillow 11.0 wheels will also upgrade the minimum deployment target.
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:
(note, some parts of the path were trimmed)
Have seen this on two different machines and it was reproducible on both after recreating a venv.