Skip to content

FileNotFoundError #5

@Surfer2010

Description

@Surfer2010

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions