Python Forum

Full Version: Create Python executable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!