PDA

View Full Version : Fresh install of PyQt5 + Python 3.4.3 and can't import anything (DLL load failed).



enjoysmath
26th July 2015, 04:45
System: Win 7 professional 64-bit

I've tried both 32-bit and 64-bit configs of PyQt5 / Python.

On my other laptop which is now broken and can't be used I had a working environment and all it took to get it working was to run the windows binaries of pyqt5 and python, and it installed fine and worked fine. Now I'm getting these errors:


c:\MyProjects\LightShowApp>python main.py
Traceback (most recent call last):
File "main.py", line 3, in <module>
from PyQt5.QtWidgets import QApplication
ImportError: DLL load failed: The specified module could not be found.

c:\MyProjects\LightShowApp> python
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.Qt
>>> import PyQt5.QtWidgets
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>> import PyQt5.QtGui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>> import PyQt5.QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>>