Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
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

Description

@InfHorus

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions