Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721644 - dev-python/matplotlib-2.2.2-r1: Python 3.7 ImportError undefined symbol: MPL_matplotlib__image_ARRAY_API
Summary: dev-python/matplotlib-2.2.2-r1: Python 3.7 ImportError undefined symbol: MPL_...
Status: RESOLVED DUPLICATE of bug 699966
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 15:32 UTC by Erik Quaeghebeur
Modified: 2020-05-09 08:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2020-05-08 15:32:15 UTC
When opening Spyder (dev-python/spyder-4.1.2) after the Python 3.6 to 3.7 update, I got the following error:

=========================================================================
NOTE: The following error appeared when setting your Matplotlib backend!!
=========================================================================

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/spyder_kernels/console/kernel.py", line 566, in _set_mpl_backend
    get_ipython().run_line_magic(magic, backend)
  File "/usr/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2307, in run_line_magic
    result = fn(*args, **kwargs)
  File "<decorator-gen-108>", line 2, in matplotlib
  File "/usr/lib/python3.7/site-packages/IPython/core/magic.py", line 187, in <lambda>
    call = lambda f, *a, **k: f(*a, **k)
  File "/usr/lib/python3.7/site-packages/IPython/core/magics/pylab.py", line 99, in matplotlib
    gui, backend = self.shell.enable_matplotlib(args.gui)
  File "/usr/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3384, in enable_matplotlib
    pt.activate_matplotlib(backend)
  File "/usr/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 313, in activate_matplotlib
    import matplotlib.pyplot
  File "/usr/lib/python3.7/site-packages/matplotlib/pyplot.py", line 31, in <module>
    import matplotlib.colorbar
  File "/usr/lib/python3.7/site-packages/matplotlib/colorbar.py", line 32, in <module>
    import matplotlib.artist as martist
  File "/usr/lib/python3.7/site-packages/matplotlib/artist.py", line 16, in <module>
    from .path import Path
  File "/usr/lib/python3.7/site-packages/matplotlib/path.py", line 21, in <module>
    from . import _path, rcParams
ImportError: /usr/lib/python3.7/site-packages/matplotlib/_path.cpython-37m-x86_64-linux-gnu.so: undefined symbol: MPL_matplotlib__image_ARRAY_API

Reproducible: Always

Steps to Reproduce:
1. Start an (ipython) console in Spyder
Actual Results:  
error message

Expected Results:  
no error message
Comment 1 Erik Quaeghebeur 2020-05-08 17:51:37 UTC
If anyone can provide a workaround, that would be greatly appreciated. My work environment (analysis/development) doesn't work any more because of this. Many packages import matplotlib so anything that requires it causes my code to scripts out.
Comment 2 Erik Quaeghebeur 2020-05-09 08:44:07 UTC

*** This bug has been marked as a duplicate of bug 699966 ***