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

neat doesnt have a config attribute, please provide a turnaround #2

Open
jaichaudhry323 opened this issue Feb 24, 2021 · 2 comments
Open

Comments

@jaichaudhry323
Copy link

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 jaichaudhry323 changed the title neat doesnt have a config, please provide the config file neat doesnt have a config attribute, please provide a turnaround Feb 24, 2021
@warmpigman
Copy link

pip install neat-python

@Surfer2010
Copy link

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

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

3 participants