Skip to content

Instantly share code, notes, and snippets.

@nivir
Created March 15, 2015 19:38
Show Gist options
  • Save nivir/f4ac46bb4f5048161877 to your computer and use it in GitHub Desktop.
Save nivir/f4ac46bb4f5048161877 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pylab.py", line 274, in <module>
from matplotlib.pyplot import *
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pyplot.py", line 109, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/backend_tkagg.py", line 13, in <module>
import matplotlib.backends.tkagg as tkagg
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/tkagg.py", line 7, in <module>
from matplotlib.backends import _tkagg
ImportError: cannot import name _tkagg
@cel4
Copy link

cel4 commented Mar 15, 2015

You have the latest version of XQuartz, right? I would try conda update matplotlib and see if that already helps. Unfortunately, this error is much harder to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment