-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Compiling with --noconsole option causes crash #134
Comments
I also tried |
Thanks for reporting this. I can replicate the issue, but it is related to this change in PyInstaller 5.7.0, and is caused by pywebview not the proxy. There is an explanation of the reason in this issue on a different project. In summary, PyInstaller has changed the way that In the meantime, downgrade your version of PyInstaller to fix this:
Where are you running that Incidentally, if you use the proxy's |
Thank you for your response.
I will try the first suggestion, but I thought What I would like is to launch the proxy so that systray icon is available, but the console window is suppressed or hidden. I never got far enough with the startup file ("Start at login" option) to determine if that would produce the desired behavior. In any case, I may want to launch the proxy on-demand (without the console) instead of on startup. When I did attempt to use the "Start at login" option, I had troubles with that, too, as reported in issue #135. I also tried |
Since downgrading pyinstaller may not be a future-proof solution, is it possible to do an alternative work-around similar to the one proposed for Kivy here? |
Yes, |
Pywebview's author has already proposed a fix for this – please could you test by installing the branch via |
I recently reported a related issue to pywebview and proposed a fix that has now been merged (see the pywebview report for details). I will leave this issue open until it is possible to pin a specific released version of pywebview in the proxy's requirements, but until then it can be resolved by force installing the fixed version: |
I used the installation instructions for creating a self-contained executable using
pyinstaller
, and confirmed that this works. However, the executable runs in a console, and closing the console window unfortunately also eliminates the systray icon. Unfortunately, closing the console is easy to do by accident, and in addition, the console creates a taskbar button that takes up valuable space in the taskbar.I've attempted to compile an executable that does not have a console, using the
--noconsole
option, as follows:pyinstaller --noconsole --onefile emailproxy.py --hidden-import timeago.locales.en
However, running the resulting executable produces the following run-time error:
The full text of the error message is shown below.
Is there any way to run the proxy (in Windows 10) without the console?
The text was updated successfully, but these errors were encountered: