ai-car-simulation icon indicating copy to clipboard operation
ai-car-simulation copied to clipboard

FileNotFoundError

Open Surfer2010 opened this issue 3 years ago • 1 comments

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.

Surfer2010 avatar Jun 12 '21 18:06 Surfer2010

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

Rachit333 avatar Jun 24 '21 14:06 Rachit333