PyQt6 6.8.0 in PyCharm, when I run the debugger, the app crashes.
Unsolved
Qt for Python
-
Full error message:
Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec pydev_imports.execfile(file, globals, locals) # execute the script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:\Users\username\OneDrive\Dokumentai\PyCharmProjects\DrumsProject\main.py", line 7, in <module> from PyQt6.QtWidgets import (QMainWindow, QApplication, QFrame, QPushButton, QSizeGrip, QDialog, QLabel, QSlider, ImportError: DLL load failed while importing QtWidgets: The specified procedure could not be found. python-BaseException
-
@Mizmas
Both PyQt and PyCharm, which are both implicated, are third-party products so you mgiht be better asking them.Does your program run OK outside of PyCharm/debugger?
Did you try a minimal script, and with less of those classes imported from
QtWidgets
?Did you try a more up-to-date version of PyCharm than one from two years ago?