Python Forum
.exe created with pyinstaller fails to execute
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.exe created with pyinstaller fails to execute
#3
Thanks for the response. The pyinstaller command was in the original message. it is
.\pyinstaller --onefile --windowed tables.py
Sorry about the code - here it is included properly. This runs with no issues under python.

import random
print ("test your tables")
choice = input("Want to choose a table? y/n: " )
if choice == "y":
    tablechoice = int ( input ("Which One? 1 to 12:"))     
trials = 1
while trials < 100:
    trials = trials + 1
    if choice != "y":
        a = random.randint(1, 12)
    else:
        a = tablechoice     
    b = random.randint(1,12)
    print( "what is", a, "times", b, "?")
    answer = int (input()) 
    while 1==1:
        if answer == a * b:
            print ("well done")
            break
        else:
            print ("try again")
            print( "what is", a, "times", b, "?")
            answer = int (input()) 
Reply


Messages In This Thread
RE: .exe created with pyinstaller fails to execute - by iankerr - Apr-20-2020, 01:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo exe created by pyinstaller only works in the dist directory dee 7 2,918 Feb-23-2023, 05:53 PM
Last Post: dee
  PyInstaller fails after changing 32 to 64 bit pynz 3 3,650 Nov-27-2019, 08:12 AM
Last Post: buran
  Pyinstaller with Sys.Argv[] - “Failed to Execute Script”? ironfelix717 0 5,374 Aug-07-2019, 02:29 PM
Last Post: ironfelix717
  Help with PyInstaller + Script "Failed to Execute Script" ironfelix717 2 9,612 Jul-31-2019, 02:18 PM
Last Post: ironfelix717
  Pyinstaller can not execute script. negru555 0 2,542 Jan-27-2019, 05:15 PM
Last Post: negru555
  Pyinstaller to execute a script in command prompt Ciroxxx 0 2,122 Sep-18-2018, 10:17 AM
Last Post: Ciroxxx

Forum Jump:

User Panel Messages

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