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

docopt not found training not working

Open BenM77 opened this issue 8 years ago • 5 comments

help needed: learn.py is unable to run. Similar problem to https://github.com/Unity-Technologies/ml-agents/issues/675 but when i enter python learn.py (<envname>) --run-id=<run-id> --train i still get the problem. the issue is also related to https://github.com/Unity-Technologies/ml-agents/issues/647 as I have gotten the same error message

BenM77 avatar May 14 '18 04:05 BenM77

You might want to share less information about yourself in public.

I was having the same problem, Using Anaconda Navigator I added and updated Docopt from the list it offers which fixed it for me.

wimachtendink avatar May 14 '18 06:05 wimachtendink

@wimachtendink How did you do this? This may be a different problem as I already have docopt installed and there is no update option.

BenM77 avatar May 14 '18 07:05 BenM77

Yeah, when I installed from pip in my ml-agents environment I was getting that error.

I tried it again from Anaconda Navigator, not Anaconda Prompt, and it worked.

I guess you could just verify by going into the Anaconda Navigator>Environments>ml-agents>installed and scroll down to Docopt.

anacondanavigator

you also don't need the full path of your file as long as it's in the python folder/directory I just use [in the right folder]/python> python learn.py test --run-id=test0 --train

but also, your executable extension is .apk?

https://github.com/Unity-Technologies/ml-agents/blob/master/python/unitytrainers/trainer_controller.py#L38

    env_path = (env_path.strip()
                .replace('.app', '')
                .replace('.exe', '')
                .replace('.x86_64', '')
                .replace('.x86', ''))  # Strip out executable extensions if passed

perhaps .apk is breaking something and Docopt is just their best guess? Maybe train it on a windows/mac/linux build then import it to apk?

wimachtendink avatar May 14 '18 16:05 wimachtendink

This is a duplicate of #749 Please Continue this conversation here.

vincentpierre avatar May 14 '18 18:05 vincentpierre

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 11:01 lock[bot]