ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Running learn.py ModuleNotFoundError:No module named 'docopt'

Open narcissuswagner opened this issue 8 years ago • 8 comments

(ml-agents) C:\ml-agents>py -3 python/learn.py python/ball --train
Traceback (most recent call last):
  File "python/learn.py", line 7, in <module>
    from docopt import docopt
ModuleNotFoundError: No module named 'docopt'

then I checked if I didn't install docopt, typying pip list,then it returns that docopt installed at version 0.6.2 So I am sure it must something wrong otherwise.

narcissuswagner avatar Apr 18 '18 16:04 narcissuswagner

I try changing

(ml-agents) C:\ml-agents>py -3 python/learn.py python/ball --train

into

(ml-agents) C:\ml-agents>python python/learn.py python/ball --train

and it somehow works!

narcissuswagner avatar Apr 18 '18 17:04 narcissuswagner

Does python in your setup refer to Python 3? It could be that docopt is installed for default 2.X python but not 3.X ?

eshvk avatar Apr 18 '18 18:04 eshvk

I followed Getting-Started-with-Balance-Ball.md and Installation.md.

conda create -n ml-agents python=3.5

Python is ver3.5.5.

narcissuswagner avatar Apr 18 '18 23:04 narcissuswagner

Your issue may be with pip and conda conflicting. If you installed docopt with pip install, but you're using conda as your package manager, you would need to install docopt with conda as well.

akmadian avatar Apr 18 '18 23:04 akmadian

I've also had the docopt issue when using (ml-agents) C:\ml-agents>python learn.py ball --train

Changing to the parent folder fixed that for me.

gw1108 avatar Apr 20 '18 03:04 gw1108

I was having this issue, using ./learn.py worked for me from Anaconda Prompt.

wimachtendink avatar May 07 '18 19:05 wimachtendink

Folks, I hope you were all able to figure out your issues. Going to close this issue now due to inactivity, but if you need additional assistance, please feel free to reopen the issue.

eshvk avatar Jun 14 '18 19:06 eshvk

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '20 09:01 lock[bot]