Python Forum
Create Python executable - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Create Python executable (/thread-29419.html)



Create Python executable - GabrielPoppes - Sep-01-2020

Hello, I am breaking my head for a few days with a problem ... I finished an application in Python, and in the graphical interface I used QT Designer, I'm trying to generate the application's executable with PyInstaller.
In the terminal I'm typing the command: pyinstaller --windowed nomedoarq.py
The folders: dist, build and pycach are created with their respective files, however, when I run the exe from the dist folder, I get the error: "Failed to execute script main"

I've tried to copy the .ui file (from QT Designer) to the dist folder, but the error persists, does anyone have any solutions? Thank you!