Python Forum
Create Python executable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create Python executable
#1
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!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020