Im facing a strange issue. I have downloaded and installed the Qt for Python library (PySide2) in the virtual environment of my project in PyCharm. I have created a dummy GUI using the Qt Designer and Im loading (.ui file) and displaying the GUI through my python code. Whenever I run the code, I can see the GUI without errors. However, whenever I debug the code, I get an error:
File "...\gui_pyside2.py", line 5, in
from PySide2.QtWidgets import QApplication, QLabel, QLineEdit
ImportError: DLL load failed: The specified procedure could not be found.
Pydev crashes on this line:
#execute the script (note: it's important to compile first to have the filename set in debug mode)
exec(compile(contents+"\n", file, 'exec'), glob, loc)
Im pretty lost on what could be the cause. It seems like pydev is interfering with the imports? I have tried using import statements instead of from import but the problem persists. Any ideas?
Versions installed:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments