Not being able to make Eel work with Electron
See original GitHub issueHello, I have been trying to get Eel to run on Electron with no luck.
import eel
options = { 'mode': 'custom', 'args': ['node_modules/electron/dist/electron.exe', '.'] }
if __name__ == "__main__":
eel.init('app')
eel.start('index.html',mode='electron')
Options are not being used anymore because of the update. But I get the following error:
Traceback (most recent call last): File “/home/pi/main.py”, line 298, in <module> eel.start(‘index.html’,mode=‘electron’) File “/home/pi/.local/lib/python3.5/site-packages/eel/init.py”, line 142, in start show(*start_urls) File “/home/pi/.local/lib/python3.5/site-packages/eel/init.py”, line 170, in show brw.open(start_urls, _start_args) File “/home/pi/.local/lib/python3.5/site-packages/eel/browsers.py”, line 64, in open browser_module.run(path, options, start_urls) File “/home/pi/.local/lib/python3.5/site-packages/eel/electron.py”, line 11, in run sps.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, stdin=sps.PIPE) File “/usr/lib/python3.5/subprocess.py”, line 640, in init errread, errwrite) = self._get_handles(stdin, stdout, stderr) File “/usr/lib/python3.5/subprocess.py”, line 1135, in _get_handles c2pwrite = stdout.fileno() io.UnsupportedOperation: fileno
I have gone through the various posts in here and well. Nothing has worked for me so far. I would love some help.
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top GitHub Comments
Sorry wait are you on Mac? (Got confused by the .exe ref).
Either way, it should work to just say
mode='electron'
with no further optionsI’m going to close this now based on inactivity. It does seem to be an IDLE error from quick googling … hopefully you’ve found and fixed the problem now.