Python Forum
ui to py command error
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ui to py command error
#1
Hi All,

I installed PyQt5 on my laptop and trying to convert my .ui file into .py using the command prompt and get the following errors when trying different commands:

1) C:\Python35\Lib\site-packages\PyQt5>pyuic5.bat -x FirstApp.ui -o FirstApp.py
'"C:\Python35\python"' is not recognized as an internal or external command,
operable program or batch file.

2) C:\Python35\Lib\site-packages\PyQt5>pyuic5 FirstApp.ui -o FirstApp.py
'"C:\Python35\python"' is not recognized as an internal or external command,
operable program or batch file.

3) C:\Python35\Lib\site-packages\PyQt5>pyuic4 FirstApp.ui -o FirstApp.py
'pyuic4' is not recognized as an internal or external command,
operable program or batch file.

Steps i followed on the internet include:

1) Reinstalled PyQt5
2) Made sure that the Python location on local C:/ in included in my Environmental Variables in system Settings
3) made sure that the pyuic5.bat file is located in my Python directory.

I'm not sure what else to do or try and been looking to find a solution for this. any help or advice will be gladly appreciated.

Note: I have Python 3.6 installed and PyQt5

Regards

Diovanno
Reply


Messages In This Thread
ui to py command error - by Diovanno - Apr-10-2018, 12:16 PM
RE: ui to py command error - by Diovanno - Apr-11-2018, 05:47 PM
RE: ui to py command error - by nilamo - Apr-11-2018, 06:09 PM
RE: ui to py command error - by Diovanno - Apr-11-2018, 06:16 PM
RE: ui to py command error - by zorekk - Aug-26-2020, 07:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGUI] Invalid command error with Entry object eliqm 8 2,189 May-18-2023, 10:14 PM
Last Post: eliqm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020