[GH-ISSUE #163] Exe compiles fine but does not run when I double-click it #152

Closed
opened 2026-02-26 12:20:39 +03:00 by kerem · 3 comments
Owner

Originally created by @Nanobot567 on GitHub (Apr 6, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/163

I compiled a python file using auto-py-to-exe and everything worked fine, according to the console, but when I tried to run the .exe, nothing happened.

Here is my python code:

import pyautogui as p

p.alert("sup")
p.alert("this is a lame test")

If you need the console output as well, here it is:

console output.txt

Originally created by @Nanobot567 on GitHub (Apr 6, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/163 I compiled a python file using auto-py-to-exe and everything worked fine, according to the console, but when I tried to run the .exe, nothing happened. Here is my python code: ``` import pyautogui as p p.alert("sup") p.alert("this is a lame test") ``` If you need the console output as well, here it is: [console output.txt](https://github.com/brentvollebregt/auto-py-to-exe/files/6267079/console.output.txt)
kerem closed this issue 2026-02-26 12:20:39 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Apr 8, 2021):

Ok, that is only the console output from the packaging stage. What about the output in the console when following the debugging steps in the common issues post?

<!-- gh-comment-id:815505543 --> @brentvollebregt commented on GitHub (Apr 8, 2021): Ok, that is only the console output from the packaging stage. What about the output in the console when following the debugging steps in the common issues post?
Author
Owner

@Nanobot567 commented on GitHub (Apr 8, 2021):

Ok, I followed the debugging steps and the program works now :) Thank you!

<!-- gh-comment-id:815803330 --> @Nanobot567 commented on GitHub (Apr 8, 2021): Ok, I followed the debugging steps and the program works now :) Thank you!
Author
Owner

@brentvollebregt commented on GitHub (Apr 12, 2021):

For others that come here: please read the help post! I have literally linked it at the bottom of the UI itself after packaging a script, the README of this repo and many other places others come for help.

<!-- gh-comment-id:817648429 --> @brentvollebregt commented on GitHub (Apr 12, 2021): For others that come here: please read the help post! I have literally linked it at the bottom of the UI itself after packaging a script, the README of this repo and many other places others come for help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#152
No description provided.