Error executing .py generated from .ui file - `ImportError: DLL load failed while importing QtCore`

See original GitHub issue

Please help with an error. After converting my .ui file to .py file, while i was executing .py the following error is appearing:

from PyQt5 import QtCore, QtGui, QtWidgets ImportError: DLL load failed while importing QtCore: The specified module could not be found. 

While it got perfectly executed first time but not on second time.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dalthvizcommented, Dec 12, 2022

Thank you for letting us know! I will close this then as not related with QtPy then 👍

1reaction
Savita-Panwarcommented, Dec 12, 2022

Thanks dalthviz, I was able to run the program once while trying it second time had shown the error. Then I installed the latest version of Python, Anaconda and the required files. And got it sorted. You are right it might be because of Qtcore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL load failed when importing PyQt5 - python - Stack Overflow
I have installed PyQt5 on windows platform and and getting an importError: DLL load failed. The import Error is as follows: from PyQt5. ......
Read more >
ImportError: DLL load failed while importing QtCore - Qt Forum
I cannot get pyqt5 to run under anaconda python. I get the following error message when I run a script shown below the...
Read more >
DLL load failed: from PyQt5 import QtCore, QtGui ... - GitHub
I tried running pip show pyinstaller inside my project dir and it points to the correct folder in site-packages. Name: pyinstaller Version: 4.0 ......
Read more >
Dll Load Failed: %1 Is Not A Valid Win32 Application - ADocLib
PyQT5 is a graphical user interface (GUI) framework for Python. Then I went with from PyQt5 import QtCore Error: ImportError: No module named...
Read more >
Trying to convert .ui file to .py file using QT, getting error ...
Traceback (most recent call last): File "C:\Python34\lib\runpy.py", ... in <module> from PyQt5 import QtCore ImportError: DLL load failed: %1 is not a valid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found