Working on my first attempt with QGIS QT Designer I am trying to compile my UI file. I am using Python27 found inside my QGIS installation (purposely not using QGIS v3 at this point). I am using the following command:
C:\Users\username\.qgis2\python\plugins\projectfolder>"C:\QGIS\bin\python.exe"
"C:\QGIS\apps\Python27\lib\site-packages\PyQt4\uic\pyuic.py" -x ui_testproject.ui -o ui_testproject.py
However, I am getting the following error message in the command prompt:
Traceback (most recent call last):
File "C:\QGIS\apps\Python27\lib\site-packages\PyQt4\uic\pyuic.py", line 31, in <module>
from PyQt4 import QtCore
ImportError: DLL load failed: The specified module could not be found.
I don’t see a QtCore.dll
file (is there even one?), or is it just looking for QtCore
?
So I take it this may me an environment variable issue? So I have added:
PYTHONHOME C:\QGIS\apps\Python27
PYTHONPATH C:\QGIS\apps\Python27\Lib\site-packages\PyQt4; C:\QGIS\apps\Python27\Scripts
Even added .SPC and .PYD as part of PATHEXT
What is missing? What am I doing incorrect?