0

I'm trying to run a program using neat-python but I'm getting this error constantly. I checked the file it has the neat section and also I tried to uninstall and reinstall neat but nothing works.

P.S I'm using VSCode

Here's the code I'm trying to run

\

def run(config_path):
 config =neat.config.Config(neat.DefaultGenome, neat.DefaultReproduction,neat.DefaultSpeciesSet,      neat.DefaultStagnation,config_path)
 p = neat.Population(config)
 p.add_reporter(neat.StdOutReporter(True))
 stats = neat.StatisticsReporter()
 p.add_reporter(stats)
`
    winner = p.run(main, 50)

if __name__ == '__main__':
 local_dir = os.path.dirname(__file__)
 config_path = os.path.join(local_dir, 'config-feedforward.txt')
 run(config_path)\`
Rabbid76
  • 202,892
  • 27
  • 131
  • 174

0 Answers0