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
TypeError: __init__() should return None, not 'NoneType' in the step #4 in Mac installation #156
Comments
I believe that Anaconda is causing your problems. Try searching for solutions like this one. You may try removing Anaconda's python from bash and use brew's installation. |
But I installed with brew, also I removed Anaconda too and I tried to install it with brew again but the same error appears. |
That's good that you could remove Anaconda, it will make easier to trace your problem. Make sure that you removed Anaconda from the Bash path, as explained here. Then restart the terminal, run |
If you really give up, a quick hack I used is to create your virtual env with the brew installed version of python (from usr/local/Cellar), so something like:
Your path env is probably still tied to Anaconda, but for someone that uses conda a lot and just wanted to try this out, it works. |
I used conda on linux but had to use pip because of this issue on OSX |
I had the same problem.
I have tried the previous solutions but unfortunately, they haven't worked. I'm on OSX. Any help would be appreciated. This was my code:
|
I need more information to help you with it. What installation of python are you using: Did you follow the guide to install dependencies on the main page? If you did it recently and got Python 3.8 from /usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -m venv football-env depending on what version of Python 3.8 you have installed. Just do |
Even a better way to create a virtual environment with $(brew --prefix python3)/bin/python3.8 -m venv football-env |
Thanks, vi3itor! Everything works now. |
For me, the article about keeping conda away from brew installation didn't help |
After following the 3 first steps I'm getting this error when I try to run step 4
python3 -m gfootball.play_game --action_set=full
:System Info:
The text was updated successfully, but these errors were encountered: