i'm fairly new to PyQt but not totally new to Python.
I'm trying to develop a GUI using PyQt5 and Python 3.4. I was creating the interface with Qt and wanted to have an early draft of the Python script. To do that i used this command :
pyuic5 -x filename.ui -o filename.py
and it worked just fine.
But, after adding more objects in my GUI, it was not possible to create the .py file. An error occurs in the cmd and the .py created lacks the def retranslateUi
and the __name__ == "__main__"
parts.
I would have put a printscreen of the error message but i'm not allowed yet.
The message says :
An unexpected error occured.
Check that you are using the latest version of PyQt5 and send an error report including the following information:
- your version of PyQt (5.4.1)
- the UI file that caused the error
- the debug output of pyuic5 (use the -d flag when calling pyuic5)
If anyone can enligthen me, that would be great!!