Open I3lacx opened 1 year ago
Try escaping the \"
; so '{\"training_iteration\": 30}'
Thanks, this trick worked in powershell, so running:
rllib train --algo DQN --env CartPole-v1 --stop '{\"training_iteration\": 30}' --framework tf2
is running for me on windows.
It did not work for cmd, but I found a different workaround (which does not work for powershell). Using "
outside and ""
inside seems to pass them correctly to the code:
rllib train --algo DQN --env CartPole-v1 --stop "{""training_iteration"": 30}" --framework tf2
The issue is resolved for me, and I guess this can not really be fixed through code, so maybe some form of documentation can be added to guide windows users?
What happened + What you expected to happen
Following the installation on the Getting started page. Starting with a clean python 3.8.16 anaconda environment on Windows 10 running in cmd.exe, following these steps:
After solving some issues mentioned in #35491 I receive:
When running the command through powershell, the error is:
When removing
--stop '{"training_iteration": 30}'
from the arguments, the training starts. Following the same steps on a Windows 11 system causes the same issue. Following the same steps in WSL works without issue.Versions / Dependencies
Tested on Windows 10, Windows 11 Using cmd.exe, powershell Python=3.8
output_pip_list.txt
Reproduction script
Starting with a clean python 3.8.16 anaconda environment on Windows 10 running in cmd.exe, following the steps from the Getting started page + hotfix for missing dependency:
Issue Severity
None