2

I am trying to use pyuic5 to convert .ui files into .py files but my files are not found.

I used:

pyuic5 -x -o part2.py PART2.ui
pyuic5 -x PART2.ui -o part2.py

My file exist in E:\aor\p2. It gives the error:

ERROR:
Fatal error in launcher: Unable to create process using '"c:\users\user1\appdata\local\programs\python\python37\python.exe"  "C:\Users\User1\AppData\Local\Programs\Python\Python37\Scripts\pyuic5.exe" -x -o pPART2.py PART2.ui': The system cannot find the file specified.

I'm using Python 3.6.

1
  • Well, your second line works. Commented Dec 25, 2022 at 13:48

1 Answer 1

1

When pyuic5 is not working, you can also use pyuic6 to convert .ui file to .py file.

Steps:

  1. First run:

    pip install pyuic6
    
  2. When installation is completed then open folder in terminal and run the command:

    pyuic6 -x filename.ui -o filename.py
    
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.