You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): 3.12.1 and pip 24.0
Using VS Code or Visual Studio: VS Code
Actual behavior
Pydevd runs into an exception when enabling matplotlib interactive mode for Qt5 backend.
Failed to enable GUI event loop integration for 'qt'
Traceback (most recent call last):
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\matplotlibtools.py", line 30, in do_enable_gui enable_gui(guiname)
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\inputhook.py", line 540, in enable_gui
return gui_hook(app)
^^^^^^^^^^^^^
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\inputhook.py", line 176, in enable_qt
from pydev_ipython.qt_for_kernel import QT_API, QT_API_PYQT5
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\qt_for_kernel.py", line 116, in <module>
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
^^^^^^^^^^^^^^^^^
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\qt_loaders.py", line 276, in load_qt
if not can_import(api):
^^^^^^^^^^^^^^^
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\qt_loaders.py", line 152, in can_import
if not has_binding(api):
^^^^^^^^^^^^^^^^
File "c:\Users\Z004N92M\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydev_ipython\qt_loaders.py", line 115, in has_binding
import imp
ModuleNotFoundError: No module named 'imp'
Backend QtAgg is interactive backend. Turning interactive mode on.
Expected behavior
Interactive mode is turned on without printing a traceback.
Steps to reproduce:
Install matplotlib 3.8.3, PyQt5 5.15.10 and setuptools 69.1.1
Debug this script with a breakpoint on the print call:
import matplotlib
print()
The text was updated successfully, but these errors were encountered:
Hello, following your instructions, I reinstalled matplotlib 3.8.3, PyQt5 5.15.10 and setuptools 69.1.1. However, I still made the above error. Here is my error message. Could you please provide me with some relevant guidance? I would really appreciate it.
OS: Windows 11
Python version: 3.12.2
IDE: Pycharm 2024.1
Error: Failed to enable GUI event loop integration for 'qt' Traceback (most recent call last): import imp ModuleNotFoundError: No module named 'imp' Backend QtAgg is interactive backend. Turning interactive mode on.
Environment data
Actual behavior
Pydevd runs into an exception when enabling matplotlib interactive mode for Qt5 backend.
Expected behavior
Interactive mode is turned on without printing a traceback.
Steps to reproduce:
matplotlib 3.8.3
,PyQt5 5.15.10
andsetuptools 69.1.1
The text was updated successfully, but these errors were encountered: