[MacPorts] #60074: Help after latest port update breaks matplotlib?

MacPorts noreply at macports.org
Tue Feb 11 03:12:35 UTC 2020


#60074: Help after latest port update breaks matplotlib?
------------------------+-----------------------------
 Reporter:  ladavid     |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:  matplotlib  |       Port:  py37-matplotlib
------------------------+-----------------------------
 Hi all,

 I recently updated py37-matplotlib. I now cannot import and receive the
 following error:

 {{{
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 <ipython-input-11-66d69862b80a> in <module>
       4 import numpy as np
       5 import pandas as pa
 ----> 6 import pylab as pl

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pylab.py in <module>
 ----> 1 from matplotlib.pylab import *
       2 import matplotlib.pylab
       3 __doc__ = matplotlib.pylab.__doc__

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/pylab.py in <module>
     216 import matplotlib as mpl
     217
 --> 218 from matplotlib.dates import (
     219     date2num, num2date, datestr2num, strpdate2num, drange,
 epoch2num,
     220     num2epoch, mx2num, DateFormatter, IndexDateFormatter,
 DateLocator,

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/dates.py in <module>
     154 import matplotlib.units as units
     155 import matplotlib.cbook as cbook
 --> 156 import matplotlib.ticker as ticker
     157
     158 __all__ = ('datestr2num', 'date2num', 'num2date', 'num2timedelta',
 'drange',

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/ticker.py in <module>
     172 from matplotlib import rcParams
     173 from matplotlib import cbook
 --> 174 from matplotlib import transforms as mtransforms
     175
     176 _log = logging.getLogger(__name__)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/transforms.py in <module>
      41
      42 from matplotlib import cbook
 ---> 43 from matplotlib._path import (
      44     affine_transform, count_bboxes_overlapping_bbox,
 update_path_extents)
      45 from .path import Path

 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/_path.cpython-37m-darwin.so, 2): Symbol not
 found: _MPL_matplotlib__contour_ARRAY_API
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/_path.cpython-37m-darwin.so
   Expected in: flat namespace
  in
 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/matplotlib/_path.cpython-37m-darwin.so
 }}}

 If it helps, I've tried uninstalling and reinstalling the port. Also, I'll
 confess to having pip installed too on my machine. I've tried to keep
 package installs separate between pip and mac ports, but feel free to let
 me know if it looks like matplotlib might be unhappy with a dependency
 installed by pip. Thank you!

 {{{
 sudo port install py37-matplotlib
 --->  Computing dependencies for py37-matplotlib
 --->  Fetching archive for py37-matplotlib
 Warning: Your DNS servers incorrectly claim to know the address of
 nonexistent hosts. This may cause checksum mismatches for some ports. See
 this page for more information:
 <https://trac.macports.org/wiki/MisbehavingServers>
 --->  Attempting to fetch
 py37-matplotlib-3.1.3_0+cairo+webagg.darwin_19.x86_64.tbz2 from
 https://packages.macports.org/py37-matplotlib
 --->  Attempting to fetch
 py37-matplotlib-3.1.3_0+cairo+webagg.darwin_19.x86_64.tbz2 from
 http://aus.us.packages.macports.org/macports/packages/py37-matplotlib
 --->  Attempting to fetch
 py37-matplotlib-3.1.3_0+cairo+webagg.darwin_19.x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/py37-matplotlib
 --->  Fetching distfiles for py37-matplotlib
 --->  Verifying checksums for py37-matplotlib
 --->  Extracting py37-matplotlib
 --->  Applying patches to py37-matplotlib
 Warning: reinplace s|^cairo=False|cairo=True| didn't change anything in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 matplotlib/py37-matplotlib/work/matplotlib-3.1.3/setup.cfg
 --->  Configuring py37-matplotlib
 --->  Building py37-matplotlib
 --->  Staging py37-matplotlib into destroot
 --->  Installing py37-matplotlib @3.1.3_0+cairo+webagg
 --->  Activating py37-matplotlib @3.1.3_0+cairo+webagg
 --->  Cleaning py37-matplotlib
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 --->  Some of the ports you installed have notes:
   py37-matplotlib has the following notes:
     The default backend is the interactive Mac OS X backend. Different
 backends can be specified using the ~/.matplotlib/matplotlibrc file. More
     details regarding backends can be found in the matplotlib FAQ:

     https://matplotlib.org/tutorials/introductory/usage.html#backends}}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60074>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list