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

neat doesnt have a config attribute, please provide a turnaround

Open jaichaudhry323 opened this issue 4 years ago • 2 comments

After doing pip install neat, this showed up:

AttributeError Traceback (most recent call last) in 3 # Load Config 4 config_path = "./config.txt" ----> 5 config = neat.config.Config(neat.DefaultGenome, 6 neat.DefaultReproduction, 7 neat.DefaultSpeciesSet,

AttributeError: module 'neat' has no attribute 'config'

image

jaichaudhry323 avatar Feb 24 '21 14:02 jaichaudhry323

pip install neat-python

warmpigman avatar Feb 24 '21 17:02 warmpigman

Hello, i don't get it to run on windows

C:\Users\abc>python C:\Users\abc\Downloads\ai-car\newcar.py
pygame 2.0.1 (SDL 2.0.14, Python 3.9.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "C:\Users\abc\Downloads\ai-car\newcar.py", line 248, in <module>
    config = neat.config.Config(neat.DefaultGenome,
AttributeError: module 'neat' has no attribute 'config'

tryied this

C:\Users\abc>python -m pip install neat-python
Collecting neat-python
  Downloading neat_python-0.92-py3-none-any.whl (44 kB)
     |████████████████████████████████| 44 kB 809 kB/s
Installing collected packages: neat-python
Successfully installed neat-python-0.92
WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.
You should consider upgrading via the 'C:\Users\abc\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.

new try

C:\Users\abc>python C:\Users\abc\Downloads\ai-car\newcar.py
pygame 2.0.1 (SDL 2.0.14, Python 3.9.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "C:\Users\abc\Downloads\ai-car\newcar.py", line 248, in <module>
    config = neat.config.Config(neat.DefaultGenome,
  File "C:\Users\abc\AppData\Local\Programs\Python\Python39\lib\site-packages\neat\config.py", line 153, in __init__
    raise Exception('No such config file: ' + os.path.abspath(filename))
Exception: No such config file: C:\Users\abc\config.txt

Surfer2010 avatar Jun 11 '21 10:06 Surfer2010