Latest PyQt6 6.8.0 crashes only when running the debugger
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
Please sign in to leave a comment.
Hello, Miztixrblx ,
According to the log extract, I assume your project is located on OneDrive. It is not recommended to use OneDrive or similar cloud storage services to store projects, as they have complex file-saving logic that can easily conflict with the IDE.
As part of standard troubleshooting, please move your project to a local directory, create a new virtual environment in that directory, and check if the problem persists in this setup.
If the issue persists, please reproduce the issue and create a create YouTrack ticket, attaching the idea.log file (found in Help | Show Log in <file_browser>).
You can also try to mitigate the issue according to the article.