mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #483] Script requiring input #377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olawalejuwonm on GitHub (May 11, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/483
Thanks for the awesome project, I was able to turn my script to exe, but the script needs user input to run, I got this when i try to run the generated exe

@github-actions[bot] commented on GitHub (May 11, 2024):
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
@brentvollebregt commented on GitHub (May 12, 2024):
Could you fill out the template you cleared? This will give context for me to help you.
Did you package using windowed mode (no console) - if so, how would you expect the input be entered?
@olawalejuwonm commented on GitHub (May 13, 2024):
Yes I packaged using windowed mode (no console) and removed all print function.
I expect that there will be a file picker
My Environment:
python --version):Python 3.12.2pip show auto-py-to-exe): Version: 2.43.3pip show pyinstaller): 6.6.0pip show eel): Version: 0.16.0@brentvollebregt commented on GitHub (May 13, 2024):
auto-py-to-exe does not add anything extra to your application - it packages as it is. When you packaged using the windowed mode, you asked for there to be no console - this means things like
printandinputwill no longer work by default.In the debugging steps that was linked in the first comment on this issue, it states,
And then goes on to say,
Following this, you would have had issues running your script with Python itself. If it doesn't work with Python, it won't work after packaging.
Outlined under "When running my script with pythonw.exe, it doesn't work", I show how you can redirect
printelsewhere. I do not have a solution forinputas you would need to build a UI for something like that.@olawalejuwonm commented on GitHub (May 13, 2024):
How do i build such ui please?
@brentvollebregt commented on GitHub (May 14, 2024):
Python has a built-in library called "tkinter", here is a decent tutorial. There are lots of other libraries too - search "python GUI" in Google to see what else is available.
@olawalejuwonm commented on GitHub (May 14, 2024):
After building with tkinter will I be able to still build with
auto-py-to-exe ?
On Tue, May 14, 2024 at 9:26 AM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (May 14, 2024):
Yes, tkinter is just a library in Python - you will still be able to package using auto-py-to-exe afterwards.
Alternatively, you could skip needing a GUI if you're fine with providing input in the console. If so, use the console mode.
@olawalejuwonm commented on GitHub (May 14, 2024):
Ok, thanks for the clarification.
Is there a similar library to this auto-py-to-exe that can be used for
macOs?
On Tue, May 14, 2024 at 10:23 AM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (May 14, 2024):
auto-py-to-exe can be used on Mac OS. We use PyInstaller under the hood - you can check out the Mac OS support here: https://pyinstaller.org/en/v4.1/usage.html#building-mac-os-x-app-bundles
@olawalejuwonm commented on GitHub (May 14, 2024):
I mean that can be used for building macOs app
On Tue, May 14, 2024 at 11:12 AM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (May 14, 2024):
auto-py-to-exe can build Mac OS X app bundles as described in the link I sent before
@olawalejuwonm commented on GitHub (May 14, 2024):
I've read but I don't understand how to do that, especially specifying the
flag. Likewise, will it be possible to build for Mac on windows?
On Tue, May 14, 2024 at 1:18 PM Brent Vollebregt @.***>
wrote:
@brentvollebregt commented on GitHub (May 14, 2024):
I've read but I don't understand how to do that, especially specifying the flag.
Use the tool on Mac OS and it will build a Mac OS App Bundle. Use windows mode and the output should then create an OS X application named
[myscript].app.Likewise, will it be possible to build for Mac on windows?
No, this is from the PyInstaller docs,
@olawalejuwonm commented on GitHub (May 14, 2024):
Thanks for the explanation.
On Tue, May 14, 2024 at 1:54 PM Brent Vollebregt @.***>
wrote:
@olawalejuwonm commented on GitHub (May 15, 2024):
@brentvollebregt I have changed the implementation to use tkinter

But this is what I got when I try to run the file
@brentvollebregt commented on GitHub (May 15, 2024):
A Google search for "pyinstaller the specified module could not be found" brings up this result which describes the same issue you have show.