Opened 2 years ago

Closed 2 years ago

#64168 closed defect (fixed)

py39-matplotlib @3.5.0_0 breakes import in matplotlib/__init__.py

Reported by: aaronm6 Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-matplotlib

Description

I recently upgraded from py39-matplotlib @3.4.3_0+cairo+webagg to py39-matplotlib @3.5.0_0+cairo+webagg and experience a problem when trying to import anything from matplotlib.

Python 3.9.9 (main, Nov 16 2021, 07:33:57) 
[Clang 12.0.5 (clang-1205.0.22.11)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
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/__init__.py", line 105, in <module>
    from packaging.version import parse as parse_version
ModuleNotFoundError: No module named 'packaging'

Reactivating my previous matplotlib version fixes the issue.

Change History (3)

comment:1 Changed 2 years ago by reneeotten (Renee Otten)

Keywords: matplotlib import removed
Owner: set to reneeotten
Port: py-matplotlib added; py39-matplotlib removed
Status: newaccepted

comment:2 Changed 2 years ago by reneeotten (Renee Otten)

sorry, my bad... I didn't notice this new dependency and had it already installed on my systems so didn't get the import error... I'll commit a fix shortly - please wait for an hour or so such that the mirrors have picked up the new binary and you should be good to go. Thanks for the report!

comment:3 Changed 2 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: acceptedclosed

In a5348fbf3b54f878e4b8118204dbed310fb85b84/macports-ports (master):

py-matplotlib: add missing dependency

Closes: #64168

Note: See TracTickets for help on using tickets.