[MacPorts] #55063: py27-matplotlib @2.1.0_1: ImportError: cannot import name cbook
MacPorts
noreply at macports.org
Thu Oct 12 11:24:02 UTC 2017
#55063: py27-matplotlib @2.1.0_1: ImportError: cannot import name cbook
----------------------------+------------------------
Reporter: mfacorcoran | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-matplotlib |
----------------------------+------------------------
Comment (by mfacorcoran):
Replying to [comment:3 ryandesign]:
> I doubt you are using MacPorts 2.1.0...
Not sure what your comment means.
I upgraded matplotlib to the latest version, which is 2.1.0_1. Here's
what happens when it's activated:
{{{
% sudo port activate py27-matplotlib @2.1.0_1+cairo+tkinter
Password:
---> Computing dependencies for py27-matplotlib
---> Deactivating py27-matplotlib @2.0.2_0+cairo+tkinter
---> Cleaning py27-matplotlib
---> Activating py27-matplotlib @2.1.0_1+cairo+tkinter
---> Cleaning py27-matplotlib
---> Some of the ports you installed have notes:
py27-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:
http://matplotlib.sourceforge.net/faq/installing_faq.html#what-
is-a-backend
[gs66w-corcoran:~] corcoran% python
Python 2.7.14 (default, Sep 22 2017, 00:05:22)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Importing pyfits
Could not import pylab
Traceback (most recent call last):
File "/Users/corcoran/.pythonrc", line 34, in <module>
import matplotlib
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/matplotlib/__init__.py", line 124, in <module>
from . import cbook
ImportError: cannot import name cbook
>>> exit()
}}}
--
Ticket URL: <https://trac.macports.org/ticket/55063#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list