Python Forum
Runs perfect in Python but fails to print last statement when converted to .exe. Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runs perfect in Python but fails to print last statement when converted to .exe. Help
#2
How do you run the exe? If you just click on it, it will close the window immediately after printing the last line and you just don't see it.
Open cmd, run the exe via command line.
or add a line to wait for user input before finishing the execution.


on a side note - you left that repeating code...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Runs perfect in Python but fails to print last statement when converted to .exe. Help - by buran - Aug-13-2020, 06:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem program runs in a loop jasserin 0 58 9 hours ago
Last Post: jasserin
  Are there errors in the code for my coin toss systems? Matlibplot is too perfect . Coolkat 0 420 Nov-13-2023, 11:54 AM
Last Post: Coolkat
  Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical jamalnuman 0 368 Aug-23-2023, 07:48 AM
Last Post: jamalnuman
  Converted EXE file size is too large Rajasekaran 0 1,569 Mar-30-2023, 11:50 AM
Last Post: Rajasekaran
  Another program runs bho68 7 1,265 Nov-08-2022, 08:16 PM
Last Post: bho68
  Python converted EXE not working Rajasekaran 1 1,647 Aug-22-2022, 05:56 PM
Last Post: hismail_sa
  Issue when using open() in converted exe skakalpes 2 1,628 Feb-02-2022, 02:42 PM
Last Post: snippsat
  UnicodeEncodeError caused by print when program runs from Popen SheeppOSU 5 3,017 Jan-13-2022, 08:11 AM
Last Post: SheeppOSU
  Why doesn't this print statement work? stylingpat 10 5,888 Mar-23-2021, 07:54 PM
Last Post: buran
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,543 Dec-22-2020, 02:06 PM
Last Post: tryfon

Forum Jump:

User Panel Messages

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