Opened 4 years ago

Closed 4 years ago

#60902 closed defect (fixed)

py37-matplotlib-basemap 1.2.1_0 imports dedent removed from matplotilb 3.3

Reported by: EJFielding (Eric Fielding) Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: py-matplotlib-basemap

Description

The present port version py37-matplotlib-basemap @1.2.1_0 imports "dedent" that was in matplotlib 3.2 but is not in matplotlib 3.3

  File ".../geodeticplot.py", line 21, in <module>
    import mpl_toolkits.basemap as basemap
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", line 50, in <module>
    from .proj import Proj
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/proj.py", line 6, in <module>
    from matplotlib.cbook import dedent
ImportError: cannot import name 'dedent' from 'matplotlib.cbook' (/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/matplotlib/cbook/__init__.py)

Works with py37-matplotlib @3.2.2_0+cairo+webagg (active). Fails with py37-matplotlib @3.3.0_1+cairo+webagg (active).

Change History (2)

comment:1 Changed 4 years ago by EJFielding (Eric Fielding)

Apparently, this is still present in the upstream version of Basemap, see https://github.com/matplotlib/basemap/issues/494

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

Owner: set to reneeotten
Resolution: fixed
Status: newclosed

In 463260db76420784f28e1e6aa2d0b8cbca81c751/macports-ports (master):

py-matplotlib-basemap: update to 1.2.2, add py39 subport

Closes: #60902

Note: See TracTickets for help on using tickets.