Skip to content
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

matplotlib compatibility #8677

Open
jorge-chavez-salas opened this issue Jan 8, 2025 · 1 comment
Open

matplotlib compatibility #8677

jorge-chavez-salas opened this issue Jan 8, 2025 · 1 comment
Labels

Comments

@jorge-chavez-salas
Copy link

jorge-chavez-salas commented Jan 8, 2025

I ran into the following import error. So, what is the version of Pillow that I need to use?

C:\17Python.exe
Traceback (most recent call last):
  File "CMH17Python.py", line 13, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "output.py", line 468, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "matplotlib\__init__.py", line 161, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "matplotlib\rcsetup.py", line 27, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "matplotlib\colors.py", line 52, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "PIL\Image.py", line 84, in <module>
ImportError: DLL load failed while importing _imaging: The specified module could not be found.
[10900] Failed to execute script 'CMH17Python' due to unhandled exception!
pip show Pillow
Name: pillow
Version: 11.1.0
Summary: Python Imaging Library (Fork)
Home-page: 
Author: 
Author-email: "Jeffrey A. Clark" <[[email protected]](mailto:[email protected])>
License: MIT-CMU
Location: C:\Users\jchavezsalas\AppData\Roaming\Python\Python311\site-packages
Requires: 
Required-by: bokeh, datashader, imageio, matplotlib, scikit-image, streamlit
Note: you may need to restart the kernel to use updated packages.
pip show matplotlib
Name: matplotlib
Version: 3.8.0
Summary: Python plotting package
Home-page: https://matplotlib.org/
Author: John D. Hunter, Michael Droettboom
Author-email: [[email protected]](mailto:[email protected])
License: PSF
Location: C:\ProgramData\anaconda3\Lib\site-packages
Requires: contourpy, cycler, fonttools, kiwisolver, numpy, packaging, pillow, pyparsing, python-dateutil
Required-by: seaborn
Note: you may need to restart the kernel to use updated packages.
@radarhere
Copy link
Member

radarhere commented Jan 8, 2025

Hi. How did you install Pillow? I would guess that this actually has nothing to do with matplotlib, but actually will just fail with from PIL import Image.

Could you

  1. uninstall Pillow,
  2. make sure that it is uninstalled by checking that you receive a ModuleNotFoundError when you try to import it in Python,
  3. and then try to install it again? If things still don't work after that, could you copy and paste your full install output here?

@radarhere radarhere changed the title matlab and pillow compatibility matplotlib and pillow compatibility Jan 8, 2025
@radarhere radarhere added Installation Usually a problem with … Windows labels Jan 8, 2025
@radarhere radarhere changed the title matplotlib and pillow compatibility matplotlib compatibility Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants