py36-matplotlib @3.1.3 broken

Renee Otten reneeotten at
Thu Feb 13 13:33:01 UTC 2020

hi Sean, 

there is already a bug report about this (see: <>) and I’m looking into it. From the comments there it seems to be related to the “cairo” backend, since Frank reports that using the +qt5 variant instead of +cairo “solves” the issue. If you haven’t removed version 3.1.2 yet you could try and to reactivate that one using “sudo port activate py36-matplotlib @3.1.3_0+cairo+webagg” and see if the problem disappears (that would tell us it’s something specific in the new matplotlib version).

I assume that you’re using Catalina? It seems to be specific to that macOS version as I cannot reproduce it on Mojave. I’ve looked on the internet as well and didn’t see anything coming up either… Since I haven’t updated yet to Catalina it’s a bit hard for me to troubleshoot this, so right now I am not sure whether it is an upstream issue or MacPorts specific. I’ll take a closer look today and will comment in the Trac ticket with my findings (if you have updates, for example whether the previous version of matplotlib works with all other ports up-to-date, please comment there as well).

Sorry for the trouble and hopefully we can figure this out soon!

> On Feb 13, 2020, at 1:08 AM, Sean Lake <odysseus9672 at> wrote:
> Hello all,
> I tried to search for the ImportError: "Symbol not found:
> _MPL_matplotlib__contour_ARRAY_API" and couldn't find anything. Should
> I make this a bug and submit it, or is this an upstream problem?
> Thanks,
> Sean Lake
> On Tue, Feb 11, 2020 at 5:11 PM Sean Lake <odysseus9672 at> wrote:
>> Hello all,
>> I notice that a "port upgrade outdated" upgraded matplotlib. Now
>> importing matplotlib.axes fails. Is there a fix I can do on my end?
>> Also, should I have cced the package's maintainer on this email?
>> Thanks,
>> Sean Lake
>> Program output:
>> Seans-Work-Macbook-Pro:~ sean$ python3.6
>> Python 3.6.10 (default, Dec 21 2019, 11:40:12)
>> [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import matplotlib.axes as mpax
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/",
>> line 1, in <module>
>>    from ._subplots import *
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/",
>> line 5, in <module>
>>    import matplotlib.artist as martist
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/",
>> line 13, in <module>
>>    from .path import Path
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/",
>> line 17, in <module>
>>    from . import _path, cbook, rcParams
>> ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/,
>> 2): Symbol not found: _MPL_matplotlib__contour_ARRAY_API
>>  Referenced from:
>> /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/
>>  Expected in: flat namespace
>> in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list