I am trying to build an app using eel library (app.py).
My file imports two more .py files from the "utils" folder in the same directory. The html and css files are located in the "web" folder in the same directory.
I am using the following command in CMD to build the app:
python -m eel app.py web --onedir --windowed --icon
The app builds without any errors, but an error occurs when I try to launch the .exe file.
Traceback (most recent call last):
File "app.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "eel\__init__.py", line 15, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "bottle.py", line 73, in <module>
AttributeError: 'NoneType' object has no attribute 'write'
Has anyone faced with the same issue before and knows how to fix it? Thank you.
The app.py works normally when not launched as an executable.