question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not being able to make Eel work with Electron

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ChrisKnottcommented, Jun 26, 2020

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 options

0reactions
samuelhwilliamscommented, Jul 26, 2020

I’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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

require(electron) doesn't work with eel.start · Issue #148 - GitHub
It doesn't when I run the .py file. When I open the the inspect element, I get this : Uncaught ReferenceError: require is...
Read more >
Electron NPM application cannot find file:///eel.js, but python can
Try relative addressing, like eeldir/eel.js , check the file permissions, check the letters case · It finds the file but then calls a...
Read more >
Electron Energy Loss Spectroscopy - ScienceDirect.com
Electron energy loss spectroscopy (EELS) is a familiar technique used in ... Smaller energy spreads are possible by making use of monochromators.
Read more >
Our Top-Five Favorite Papers On the Development of Electron ...
Electron Energy Loss Spectroscopy (EELS)* answers the question of how ... its footprints on the EEL spectra, and a lot of effort is...
Read more >
Near-Field Mapping of Photonic Eigenmodes in Patterned ...
For plasmonic systems, electron energy-loss spectroscopy (EELS) is ... it should be noted that the maps of LSPRs do not necessarily bear a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found