python-eel / Eel

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

After converting Eel project to exe using -onefile with pyinstaller, Eel now returns a 404 error #518

Closed eatsana closed 3 years ago

eatsana commented 3 years ago

I am using version 0.14.0

I am converting a basic hello world eel program into an exe using pyinstaller. Whenever I use the command pyinstaller --onefile app.py and run the executable, I get a 404 error: Sorry, the requested URL 'http:/localhost:53839(I use port=0)/index.html' caused an error. Keep in mind that the web folder is right next to the exe. This isn't an issue when I don't use the onefile command and happens with every eel project I've tried this on.

Steps to reproduce the behavior:

  1. Convert an any eel application to an exe using the command pyinstaller --onefile app.py
  2. Open the app
  3. See error

I expect the app to open the exact same way it would when it was a python file

Here's a screen shot of what I see example

eatsana commented 3 years ago

Forgot to include web folder. My bad