Mailinglist Archive: opensuse-bugs (6470 mails)

< Previous Next >
[Bug 1136643] IPython console in spyder3 breaks after an exception error
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 01 Jul 2019 07:30:44 +0000
  • Message-id: <>

--- Comment #1 from Rodolfo Marques <rodolfo.am25@xxxxxxxxx> ---
I did a further inspection in order to recreate the problem and found out that
this problem appears after installing matplotlib plotting backends. Here's what
I did:

1) First I uninstalled all previously installed matplotlib components:
NOTE: at this point the interactive console behaves normally, i.e. no bug

2) Reinstalled python3-matplotlib:
python3-matplotlib-tk-2.0.2-lp151.3.6.x86_64 (recommended)
After installing these components the interactive console in spyder crashes due
to matplotlib backends not being found. Here is the error output:

Traceback (most recent call last):
"/usr/lib/python3.6/site-packages/spyder/utils/ipython/", line
498, in _set_mpl_backend
get_ipython().run_line_magic(magic, backend)
File "/usr/lib/python3.6/site-packages/IPython/core/",
line 2307, in run_line_magic
result = fn(*args, **kwargs)
File "</usr/lib/python3.6/site-packages/>",
line 2, in matplotlib
File "/usr/lib/python3.6/site-packages/IPython/core/", line 187,
in <lambda>
call = lambda f, *a, **k: f(*a, **k)
File "/usr/lib/python3.6/site-packages/IPython/core/magics/",
line 99, in matplotlib
gui, backend =
File "/usr/lib/python3.6/site-packages/IPython/core/",
line 3384, in enable_matplotlib
File "/usr/lib/python3.6/site-packages/IPython/core/", line
313, in activate_matplotlib
import matplotlib.pyplot
File "/usr/lib64/python3.6/site-packages/matplotlib/", line 115,
in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show =
"/usr/lib64/python3.6/site-packages/matplotlib/backends/", line 32,
in pylab_setup
ModuleNotFoundError: No module named 'matplotlib.backends.backend_gtk3agg'

3) Installed the following packages:
python3-matplotlib-cairo-2.0.2-lp151.3.6.x86_64 (recommended)

After this the error when starting the interactive console in spyder disappears
but the original bug appears.

ADDITIONAL NOTE: I created a simple Python environment installing only spyder,
ipython (pip install spyder ipython), tested it and it was ok. After installing
matplotlib I received error messages for the cairo and GTK backends. Installed
pycairo and pygobject from pip and the original bug was recreated in spyder's
interactive console.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >