0

I am learning PyQt5, and while converting a ui to py, it throws this error:

Error: No such file or directory: "Disaster.ui"

The file name is Disaster.ui. The command is:

pyuic5 -x Disaster.ui -o abc.py
ekhumoro
  • 115,249
  • 20
  • 229
  • 336

1 Answers1

1

The error occurs because the file Disaster.ui does not exist in the current folder (i.e. wherever you're executing pyuic5 from). To prove this, execute dir *.ui.

To fix it, either cd to the relevant folder, or use an absolute path instead.

ekhumoro
  • 115,249
  • 20
  • 229
  • 336