Troubles using pyuic5
-
I had python 3.8.5 installed on my machine, and I had pyuic5 installed and used it to convert .ui to .py files (using cmd). I recently upgraded to python 3.8.7, and whenever I try to convert now, I get this error:
C:\Users....>pyuic5 -x Windows.ui -o Windows.py
Fatal error in launcher: Unable to create process using '"d:\program files\python3.8.5\python.exe" "D:\Program Files\Python 3.8.7\Scripts\pyuic5.exe" -x Windows.ui -o Windows.py': The system cannot find the file specified.(Note that Python, as well as other modules work perfectly)
I made sure that pyqt5 and pyuic5 have been installed correctly. I also made sure the python.exe, the python script folder and the PyQt5 folder's paths are added to my environment variables.
I am no expert, but I believe that cmd is looking for the python.exe file from python3.8.5 folder (which doesn't even exist) instead of the one in python3.8.7 folder. -
UPDATE:
I pip uninstalled/re-installed the following, and that solved my issue:
PyQt5
PyQt5-tools
PyQt5-sip
PyQtWebEngine -
@Ahmed-Zeid said in Troubles using pyuic5:
The system cannot find the file specified.
Is your
Windows.ui
is in same location aspyuic5
? -
@Ratzz
Same location as pyuic.py file? Yes, still doesn't work. And before it was in a completely separate file, and there were no issues at all (before python upgrade)! I don't believe the problem is with the .ui file, as typing "pyuic5" only, gives the same error:
Fatal error in launcher: Unable to create process using '"d:\program files\python3.8.5\python.exe" "D:\Program Files\Python 3.8.7\Scripts\pyuic5.exe" ': The system cannot find the file specified. -
@Ahmed-Zeid said in Troubles using pyuic5:
'"d:\program files\python3.8.5\python.exe"
This is pointing to 3.8.5
"D:\Program Files\Python 3.8.7\Scripts\pyuic5.exe"
This is pointing to 3.8.7
Both are valid path?
-
This post is deleted!
-
@Ahmed-Zeid
As you addedpython
toPATH
I do not see any other option. May be some else would know. -
UPDATE:
I pip uninstalled/re-installed the following, and that solved my issue:
PyQt5
PyQt5-tools
PyQt5-sip
PyQtWebEngine