Created the notepad.ui file in Qt4 Designer and tried to create the notepadwindow.py file using the command

 pyuic4.bat notepad.ui -o notepadwindow.py 

As a result, received the following error

 Traceback (most recent call): File "C:\Python27\Lib\site-packages\PyQt4\uic\pyuic.py" line 31, in <module> from PyQt4 import QtCore Import Error: DLL load failed: %1 далее что-то непонятное на другой кодировке Win32. 

    1 answer 1

    Most likely the problem was 32 Python27 and PyQt4 64 bits, and the error was that the DLL is not a Win32 application. After installing the 64-bit version of Python27, the error disappeared.