Error executing .py generated from .ui file - `ImportError: DLL load failed while importing QtCore`
See original GitHub issuePlease 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:
- Created 9 months ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for letting us know! I will close this then as not related with QtPy then 👍
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.