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

Unable to get visualize.py to work with the example code given in evolve-feedforward.py #262

Open
crsas opened this issue Mar 2, 2023 · 1 comment

Comments

@crsas
Copy link

crsas commented Mar 2, 2023

I attempt to run the code derived from evolve-feedforward.py as is, installing the visualize module on Pycharm, using neat-python 0.92, only to be met with AttributeError: module 'visualize' has no attribute 'net_draw'. I do not know how to fix this error, and have tried running visualize.py separately, but with no result other than a 0 error exit code.

Please help!

@phpwutz
Copy link

phpwutz commented Mar 19, 2023

Hi, I ran into the same issue and found a solution, so here it goes:
i had to copy the content of visualize.py ( https://raw.githubusercontent.com/CodeReclaimers/neat-python/master/examples/xor/visualize.py ) to the working directory and pip install graphviz then it worked :)

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

2 participants