python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.38k stars 583 forks source link

Error while running the Electron example #544

Open ghost opened 2 years ago

ghost commented 2 years ago

Eel version latest

Describe the bug On running the example of how to use Eel with Electron, I got an error:

FileNotFoundError: [Errno 2] No such file or directory: 'node_modules/electron/dist/electron.exe'

This error clearly stated that the electron executable file does not exist. Meaning that either the Electron is updated while the example uses the older version or Electron has not been correctly used.

To Reproduce Run the Electron example and see the output

Expected behavior The electron window should be running.

Desktop (please complete the following information):

its-monotype commented 2 years ago

yarn / npm install

ghost commented 2 years ago

I actually did that, then also this error popped up

PrematureDeer8 commented 1 year ago

It's possible that your electron executable file is in a different location. I am in the process of transitioning from using windows to Mac for development and I had to adjust the code so that it would look for the correct path.