Skip to content

Instantly share code, notes, and snippets.

@nbecker
Created May 27, 2016 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbecker/9ee0957a54d28eb8c2b801d557f89c5f to your computer and use it in GitHub Desktop.
Save nbecker/9ee0957a54d28eb8c2b801d557f89c5f to your computer and use it in GitHub Desktop.
error on testing matplotlib-1.5.2
Python 3.5.1 |Anaconda custom (64-bit)| (default, Dec 7 2015, 11:16:01)
Type "copyright", "credits" or "license" for more information.
IPython 4.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: python.el: native completion setup loaded
In [2]: %matplotlib
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-fc39d5fd4eba> in <module>()
----> 1 get_ipython().magic('matplotlib')
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086
<decorator-gen-106> in matplotlib(self, line)
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/magics/pylab.py in matplotlib(self, line)
98 print("Available matplotlib backends: %s" % backends_list)
99 else:
--> 100 gui, backend = self.shell.enable_matplotlib(args.gui)
101 self._show_matplotlib_backend(args.gui, backend)
102
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/interactiveshell.py in enable_matplotlib(self, gui)
2949 gui, backend = pt.find_gui_and_backend(self.pylab_gui_select)
2950
-> 2951 pt.activate_matplotlib(backend)
2952 pt.configure_inline_support(self, backend)
2953
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/pylabtools.py in activate_matplotlib(backend)
293 matplotlib.rcParams['backend'] = backend
294
--> 295 import matplotlib.pyplot
296 matplotlib.pyplot.switch_backend(backend)
297
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/pyplot.py in <module>()
112
113 from matplotlib.backends import pylab_setup
--> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
115
116 _IP_REGISTERED = None
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/backends/__init__.py in pylab_setup()
30 # imports. 0 means only perform absolute imports.
31 backend_mod = __import__(backend_name,
---> 32 globals(),locals(),[backend_name],0)
33
34 # Things we pull in from all backends
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py in <module>()
16
17
---> 18 from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase
19
20 from .backend_agg import FigureCanvasAgg
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py in <module>()
13
14 from .backend_agg import FigureCanvasAgg
---> 15 from .backend_qt5 import QtCore
16 from .backend_qt5 import QtGui
17 from .backend_qt5 import FigureManagerQT
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py in <module>()
29 figureoptions = None
30
---> 31 from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__
32 from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool
33
/home/nbecker/anaconda3/envs/py35/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py in <module>()
135 # have been changed in the above if block
136 if QT_API in [QT_API_PYQT, QT_API_PYQTv2]: # PyQt4 API
--> 137 from PyQt4 import QtCore, QtGui
138
139 try:
ImportError: libicui18n.so.56: cannot open shared object file: No such file or directory
In [3]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment