Skip to content

Error importing FigureCanvas #16834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xo-HADES-xo opened this issue Mar 19, 2020 · 0 comments · Fixed by #16835
Closed

Error importing FigureCanvas #16834

xo-HADES-xo opened this issue Mar 19, 2020 · 0 comments · Fixed by #16835
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone

Comments

@xo-HADES-xo
Copy link

Bug report

After updating to latest version (3.2.1) I started getting this error:

# Paste your code here
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
>>>from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
  File "C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 5, in <module>
    from .backend_qt5agg import (
  File "C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 11, in <module>
    from .backend_qt5 import (
  File "C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt5.py", line 19, in <module>
    from .qt_compat import (
ImportError: cannot import name '_isdeleted' from 'matplotlib.backends.qt_compat' (C:\Python37-32\lib\site-packages\matplotlib\backends\qt_compat.py)

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.2.1
  • Matplotlib backend (print(matplotlib.get_backend())):TkAgg
  • Python version:3.7.6 (32Bit)
  • Jupyter version (if applicable):
  • Other libraries:
    altgraph 0.17
    astroid 2.3.3
    colorama 0.4.3
    cx-Freeze 6.1
    cycler 0.10.0
    future 0.18.2
    isort 4.3.21
    joblib 0.14.1
    kiwisolver 1.1.0
    lazy-object-proxy 1.4.3
    matplotlib 3.2.1
    mccabe 0.6.1
    mpmath 1.1.0
    numpy 1.18.2+mkl
    pandas 1.0.3
    pefile 2019.4.18
    pip 20.0.2
    psutil 5.7.0
    PyInstaller 4.0.dev0+d08a42c612
    pylint 2.4.4
    pyparsing 2.4.6
    PyQt4 4.11.4
    PyQt5-sip 12.7.1
    python-dateutil 2.8.1
    pytz 2019.3
    pywin32-ctypes 0.2.0
    scikit-learn 0.22.2.post1
    scipy 1.4.1
    setuptools 46.0.0
    six 1.14.0
    tailer 0.4.1
    typed-ast 1.4.1
    wrapt 1.12.1
    xlrd 1.2.0
    XlsxWriter 1.2.8
@tacaswell tacaswell added this to the v3.2.2 milestone Mar 19, 2020
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants