Skip to content

Error with PySide6 when using matplotlib: Failed to enable GUI event loop integration for 'qt' #1222

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
MarcosCalvi opened this issue Feb 27, 2023 · 1 comment

Comments

@MarcosCalvi
Copy link

Hello, I am having this problem when I try to debug an app using PySide6 and matplotlib, it uses some graphs and seems to be the part that goes wrong.

This is the output in the console:

Failed to enable GUI event loop integration for 'qt'
Traceback (most recent call last):
File "c:\Users\marco.vscode\extensions\ms-python.python-2023.3.10581011\pythonFiles\lib\python\debugpy_vendored\pydevd\pydev_ipython\matplotlibtools.py", line 30, in do_enable_gui
enable_gui(guiname)
File "c:\Users\marco.vscode\extensions\ms-python.python-2023.3.10581011\pythonFiles\lib\python\debugpy_vendored\pydevd\pydev_ipython\inputhook.py", line 540, in enable_gui
return gui_hook(app)
File "c:\Users\marco.vscode\extensions\ms-python.python-2023.3.10581011\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\marco.vscode\extensions\ms-python.python-2023.3.10581011\pythonFiles\lib\python\debugpy_vendored\pydevd\pydev_ipython\qt_for_kernel.py", line 116, in
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "c:\Users\marco.vscode\extensions\ms-python.python-2023.3.10581011\pythonFiles\lib\python\debugpy_vendored\pydevd\pydev_ipython\qt_loaders.py", line 285, in load_qt
raise ImportError("""
ImportError:
Could not load requested Qt binding. Please ensure that
PyQt4 >= 4.7 or PySide >= 1.0.3 is available,
and only one is imported per session.

Currently-imported Qt library:   None
PyQt4 installed:                 False
PyQt5 installed:                 False
PySide >= 1.0.3 installed:       False
PySide2 installed:               False
Tried to load:                   ['pyqtdefault', 'pyside', 'pyside2', 'pyqt5']

Backend QtAgg is interactive backend. Turning interactive mode on.

I am using PySide6 and I think the qt_loaders is what is missing Qt6.

Any help?

@int19h
Copy link
Contributor

int19h commented Feb 27, 2023

The debugger doesn't support Qt6 at the moment - see #1112

(You can still debug, but none of the special integration features are expected to work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants