You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Cannot compile to exe with the option "Window based (hide the console)" with auto-py-to-exe AttributeError: 'NoneType' object has no attribute 'write' #739
Eel version
0.16 and 0.17 both have the issue Describe the bug
Basically when I compile my project using auto-py-2-exe, it can works without issue, however if I compile with the option "Window based (hide the console) it cannot start my exe as it immediately shows the image above:
File "main.py", line 1, in
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "eel_init.py", line 15, in
import bottle as btl
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "bottle.py", line 73, in
AttributeError: 'NoneType' object has no attribute 'write'
To Reproduce
Compile any project with auto-py-to-exe and check hide the console Window based
Expected behavior
I want to be able to compile it for an actual release so I do not want the console to be shown to the users.
Activity
InfHorus commentedon Aug 4, 2024
Managed to make a workaround by redirecting the stdout & stderr doing :
But it would be for sure better for people to have an actual fix without the needs for that.