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.

404 Not found, file does not exist

See original GitHub issue

I have this structure

gui.py
web/
  index.html

And this inside gui.py

import eel
eel.init('web')
eel.start('index.html')

When I run the script I get this

screenshot_16

Why is that?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
ParmarTaruncommented, Jun 4, 2019

i’m getting the same error. should i wait till morning ?!

1reaction
einfachWitzloscommented, Mar 26, 2022

Hey everyone, I fixed this issue by using os.path and use the full path like so:

import eel
import os

dirname = os.path.dirname(__file__)
eel.init(os.path.join(dirname, "www/"))
eel.start("index.html")

My folder sturcure is: gui.py www/ index.html

It seems to be the usual path problems with Windows systems. @ChrisKnott maybe have a look at a way to fix this for the different os types or add a note to the readme?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
Basically, it means that the client (your, or your visitor's, web browser) was able to successfully connect to the host (your website's server), ......
Read more >
What Does an Error 404 Mean? Fix the Page Not Found Error ...
In technical terms, the error 404 message is an HTTP status code. It means that your browser has connected with the server, but...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
Error 404 not found - What does it mean & how to fix it! - IONOS
Reload the page : It might be that the error 404 has appeared for the simple reason that the page did not load...
Read more >
HTTP error 404 file not found on a server - Microsoft Learn
Cause · The requested file has been renamed. · The requested file has been moved to another location and/or deleted. · The requested...
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