eel.expose(hello_to_python);
function hello_to_python() {
console.log('Hello python');
}
When I do
python run.py
a window appears with the html showing in it. But when I take a look in the terminal, I find this error.
Traceback (most recent call last):
File "/home/5hayanB/Repositories/temp-repositories/eel/venv/lib/python3.10/site-packages/bottle.py", line 876, in _handle
return route.call(**args)
File "/home/5hayanB/Repositories/temp-repositories/eel/venv/lib/python3.10/site-packages/bottle.py", line 1756, in wrapper
rv = callback(*a, **ka)
File "/home/5hayanB/Repositories/temp-repositories/eel/venv/lib/python3.10/site-packages/bottle_websocket/plugin.py", line 5, in wrapper
callback(request.environ.get('wsgi.websocket'), *args, **kwargs)
File "/home/5hayanB/Repositories/temp-repositories/eel/venv/lib/python3.10/site-packages/eel/__init__.py", line 249, in _websocket
msg = ws.receive()
AttributeError: 'NoneType' object has no attribute 'receive'
I'm new to electron so it might be that I'm doing something obviously wrong here. But I followed the Eelectron example given in the examples folder. I tried running that example and it runs without any problem. I can't seem to figure out what I'm doing wrong here.
I'm trying to make a hello_world example Eel app. I have the following files.
run.py
index.js
web/index.html
web/js/test.js
When I do
a window appears with the html showing in it. But when I take a look in the terminal, I find this error.
I'm new to electron so it might be that I'm doing something obviously wrong here. But I followed the
Eelectron
example given in the examples folder. I tried running that example and it runs without any problem. I can't seem to figure out what I'm doing wrong here.