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
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
Open
InfHorus opened this issue
Aug 4, 2024
· 1 comment
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.
System Information
OS: Windows 11
Browser: Chrome
Python Distribution: 3.11
Screenshots
The text was updated successfully, but these errors were encountered:
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.
System Information
Screenshots
The text was updated successfully, but these errors were encountered: