Closed rra88 closed 1 year ago
@rra88 can you please fill the debugging info required in issue? Without that we cannot help you much. You can see it when opening the issue, all that bolierplate stuff that you probably just deleted when typing your message above.
I submitted this as a question, and not a bug report, that's why there was no boilerplate. You can close this if you'd like, and I can re-file the question as a bug report.
I submitted this as a question, and not a bug report, that's why there was no boilerplate. You can close this if you'd like, and I can re-file the question as a bug report.
Not sure what is the difference b/c we cannot answer your question without that info. See https://github.com/conda-forge/pillow-feedstock/issues/142.
PS: No need to open multiple issues with different labels. It only creates noise and make things harder to track.
Comment:
Hi, Using Python 3.9.16 | packaged by conda-forge | (feeb267e, Jan 18 2023, 16:20:57) [PyPy 7.3.11 with MSC v.1929 64 bit (AMD64)] on win32 and running from matplotlib import pyplot as plt results in the error message Traceback (most recent call last): File "", line 1, in
File "path-to-my-environment\lib\site-packages\matplotlib__init.py", line 131, in
from . import _api, _version, cbook, _docstring, rcsetup
File "path-to-my-environment\lib\site-packages\matplotlib\rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "path-to-my-environment\lib\site-packages\matplotlib\colors.py", line 51, in
from PIL import Image
File "", line 1058, in _handle_fromlist
File "", line 228, in _call_with_frames_removed
File "path-to-my-environment\lib\site-packages\PIL\Image.py", line 103, in
from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (path-to-my-environment\lib\site-packages\PIL\ init__.py)
My matplotlib version is 3.7.1 and pillow/PIL version is 9.4.0.
Does anyone know what might be the cause of this? According to https://pillow.readthedocs.io/en/stable/installation.html#old-versions Pillow >= 9.3 should work with Python 3.9, https://matplotlib.org/stable/devel/min_dep_policy.html matplotlib 3.7 should work with Python >= 3.8, and https://matplotlib.org/stable/devel/dependencies.html matplotlib should work with Pillow >= 6.2.