Open vshesh opened 3 years ago
I have the same issue. I guess when the io-related blocking happens, it prevents the server from running properly.
I'm having the exact same problem. I'm using a simple hello world eel project. When adding block=False
, eel can no longer connect. It's super frustrating.
Same problem here, although I don't use io things
Some issue here.
Same here. As a workaround you can launch eel in a thread
import threading
import eel
def start_gui():
eel.init ('gui')
eel.start ('index.html')
gui_thread = threading.Thread (target=start_gui)
gui_thread.daemon = True
gui_thread.start()
# do other stuff
Eel version 0.14.0
Describe the bug Running eel in non blocking mode, then reading from sys.stdin in a loop causes a localhost failed to connect in chrome.
what happens
To Reproduce Steps to reproduce the behavior:
eel.init('web') eel.start('index.html', block=False)
while True: for l in sys.stdin: eel.draw([['x', 1, random.random()500, random.random() 500]])
Expected behavior App should open as normal and display results of drawing a random x every second.
Desktop (please complete the following information):
Additional context Doing something non sys.stdin related in the while True loop works just fine, like