I am trying to create a GUI in python using plain HTML, CSS, JS. I am using python eel module to create a GUI from it. When i tried to execute .py file it says module not found. Here are the code and error
main.py
import eel
eel.init("./Evo/Body/Comp")
eel.start("desktop.html")
When I execute this code by using
python main.py
It gives this error
main.py", line 1, in <module>
import eel
\Lib\site-packages\eel\__init__.py", line 16, in <module>
import bottle.ext.websocket as wbs
ModuleNotFoundError: No module named 'bottle.ext.websocket'
Earlier it was running well and fine but due to some issue i need to reset my PC. After reset when i re-installed everything then i am unable to run eel module and again and again same error occurs.
Make sure you are using auto-py-to-exe to package your app.
After inserting necessary details (script file,, extra files etc), you would see an advanced options tab probably below, click on it to expand it, look for the hidden imports label and insert "bottle-websocket" in the input field representing the hidden imports, that's all you need to do