-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script requiring input #483
Comments
👋 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. |
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? |
Yes I packaged using windowed mode (no console) and removed all print function. My Environment:
|
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 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 |
How do i build such ui please? |
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. |
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:
Python has a built-in library called "tkinter", here is a decent tutorial
<https://realpython.com/python-gui-tkinter/>. There are lots of other
libraries too - search "python GUI" in Google to see what else is available.
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BE7MSUKUSTZZFAXTTDZCHDCTAVCNFSM6AAAAABHSJU5L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZGU4DAMJYGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
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. |
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:
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.
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BCAJVUCB5LGJ24EFKTZCHJZ3AVCNFSM6AAAAABHSJU5L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZG4YDONBXGM>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
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 |
I mean that can be used for building macOs app
…On Tue, May 14, 2024 at 11:12 AM Brent Vollebregt ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BCD7YWQCISYB42RXA3ZCHPR3AVCNFSM6AAAAABHSJU5L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZHAYTCNRYHA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
auto-py-to-exe can build Mac OS X app bundles as described in the link I sent before |
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:
auto-py-to-exe can build Mac OS X app bundles as described in the link I
sent before
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BBLOXGTBLCDWJ5K55LZCH6I5AVCNFSM6AAAAABHSJU5L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGA2TKOBSGM>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
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 Likewise, will it be possible to build for Mac on windows? No, this is from the PyInstaller docs,
|
Thanks for the explanation.
…On Tue, May 14, 2024 at 1:54 PM Brent Vollebregt ***@***.***> wrote:
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
<https://pyinstaller.org/en/stable/#pyinstaller-manual>,
PyInstaller is tested against Windows, MacOS X, and Linux. However, it is
not a cross-compiler; to make a Windows app you run PyInstaller on Windows,
and to make a Linux app you run it on Linux, etc.
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BB6EMX7Y6LKEKNHMYDZCICPBAVCNFSM6AAAAABHSJU5L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGE2TSMJUG4>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
@brentvollebregt I have changed the implementation to use tkinter |
A Google search for "pyinstaller the specified module could not be found" brings up this result which describes the same issue you have show. |
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
The text was updated successfully, but these errors were encountered: