Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError #5

Open
Surfer2010 opened this issue Jun 12, 2021 · 1 comment
Open

FileNotFoundError #5

Surfer2010 opened this issue Jun 12, 2021 · 1 comment

Comments

@Surfer2010
Copy link

Hello, I got this error:

 ****** Running generation 0 ******

Traceback (most recent call last):
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 261, in <module>
    population.run(run_simulation, 1000)
  File "C:\Users\Dom\AppData\Local\Programs\Python\Python39\lib\site-packages\neat\population.py", line 89, in run
    fitness_function(list(iteritems(self.population)), self.config)
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 173, in run_simulation
    cars.append(Car())
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 30, in __init__
    self.sprite = pygame.image.load('car.png').convert() # Convert Speeds Up A Lot
FileNotFoundError: No such file or directory.
@Rachit333
Copy link

Download all the files and make sure they are all in same folder. Then try again!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants