import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.
-
How to Resolve this Issue :
Just installed the pyqt6 faced this problem and i am working on the PycharmIssue:
import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found. -
How to Resolve this Issue :
Just installed the pyqt6 faced this problem and i am working on the PycharmIssue:
import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.@Diptanshu-Malviya
How did you install, and does this occur outside of PyCharm? -
@Diptanshu-Malviya
How did you install, and does this occur outside of PyCharm?@JonB yes , i had installed in the terminal . I think it is problem in the version, because i move to pyqt5 it working perfectly . I don't know , but in future it will again show the same error when i reinstall the pyqt6.
-
What Windows version is this - note Qt 6 supports only Windows 10 onwards.
-
What Windows version is this - note Qt 6 supports only Windows 10 onwards.
@friedemannkleint I am using window 11
-
I am having the same problem both with Windows installer from python.org and with mingw-w64 instalation of python. Whatever I try to import from PySide6 I am getting "DLL load failed while importing QtGui: The specified procedure could not be found."
I am using Windows 10, python.org python is version 3.13.7, mingw-w64 version of python is 3.12.9, version of PySide6 in python.org is 6.9.2, in mingw-w64 version is 6.8.2
In python.org version of python "missing" dlls are in C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin (in my installation). I put that directory in System %Path% variable bat that did not help either. -
Tried also adding path C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin by:
os.add_dll_directory(r'C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin')
command succeeded but importing ( from PySide6.QtGui import QImage ) still gave me the same error.
-
You have a mix of PySide6 and PyQt6 here, what are you using, really?