[MacPorts] #67702: import matplotlib.pyplot as plt fails
MacPorts
noreply at macports.org
Wed Jun 28 14:42:29 UTC 2023
#67702: import matplotlib.pyplot as plt fails
---------------------+------------------------
Reporter: dershow | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: matplotlib
---------------------+------------------------
I have py39-matplotlib port installed. When I then try:
{{{
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/matplotlib/pyplot.py", line 55, in <module>
from matplotlib import rcsetup, style
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/matplotlib/style/__init__.py", line 1, in <module>
from .core import available, context, library, reload_library, use
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/matplotlib/style/core.py", line 26, in <module>
import importlib_resources
ModuleNotFoundError: No module named 'importlib_resources'
}}}
I found a work around:
{{{
sudo port install py39-importlib-resources
}}}
Perhaps this should be a dependent?
--
Ticket URL: <https://trac.macports.org/ticket/67702>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list