zainstalowałem x86 python3.3 (oficjalny instalator python.org) Na tej Windows 7 32-bitPyQt4 nie może importować QtGui ale może importować QtCore
następnie zainstalowane PyQt4-4.10 dla python3.3 Windows x86 stąd PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe, oficjalny instalator zbyt pełna instalacja PyQt4 (w tym Qt Runtime)
i podwójne sprawdzone, że zarówno python i PyQt4 są na $ PATH
ale wydaje się, mogę importować niektóre pakiety (np QtCore), ale nie innych (np. QtGui)
, chociaż są one obok siebie w tej samej ścieżce
>>> from PyQt4 import QtCore
>>> QtCore.__file__
'C:\\Python33\\lib\\site-packages\\PyQt4\\QtCore.pyd'
>>> from PyQt4 import QtGui
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from PyQt4 import QtGui
ImportError: DLL load failed: The specified module could not be found.
>>> import os
>>> os.path.exists('C:\\Python33\\lib\\site-packages\\PyQt4\\QtGui.pyd')
True
>>> from PyQt4 import Qt
>>> from PyQt4 import QtXml
>>> from PyQt4 import QtNetwork
>>> from PyQt4 import QtDesigner
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
from PyQt4 import QtDesigner
ImportError: DLL load failed: The specified module could not be found.
>>> os.path.exists('C:\\Python33\\lib\\site-packages\\PyQt4\\QtDesigner.pyd')
True
prace dla QtCore.pyd zawiedzie zarówno QtGui.pyd i Qt5Gui.dll i produkuje tę wiadomość: „OSError: [WinError 126] Określony moduł nie mógł być znaleziony” chociaż oba pliki są w tej samej ścieżce QtCore .pyd – bahaelaila7
Z góry dziękuję – bahaelaila7