#50065: Problem with import matplotlib.pyplot : RuntimeError: module compiled against API version a but this version of numpy is 9 ------------------------+-------------------------------- Reporter: phillicl@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: ------------------------+-------------------------------- Somehow the matplotlib port has been compiled against the wrong version of numpy. (This problem started after I did port install py27-pandas ) {{{ import matplotlib.pyplot }}} generates the error {{{ RuntimeError: module compiled against API version a but this version of numpy is 9 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/matplotlib/pyplot.py", line 29, in <module> import matplotlib.colorbar File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/matplotlib/colorbar.py", line 32, in <module> import matplotlib.artist as martist File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/matplotlib/artist.py", line 14, in <module> from .transforms import (Bbox, IdentityTransform, TransformedBbox, File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/matplotlib/transforms.py", line 39, in <module> from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox, ImportError: numpy.core.multiarray failed to import }}} Some attempts to reinstall matplotlib, numpy, and scipy have not resolved the problem -- Ticket URL: <https://trac.macports.org/ticket/50065> MacPorts <https://www.macports.org/> Ports system for OS X