Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Cannot compile to exe with the option "Window based (hide the console)" with auto-py-to-exe AttributeError: 'NoneType' object has no attribute 'write'

Open InfHorus opened this issue 6 months ago • 1 comments

Eel version 0.16 and 0.17 both have the issue Describe the bug image 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 image

InfHorus avatar Aug 04 '24 00:08 InfHorus