AI4Finance-Foundation / ElegantRL

Massively Parallel Deep Reinforcement Learning. 🔥
https://ai4finance.org
Other
3.69k stars 845 forks source link

unable to create file elegantrl/envs/EnvSMAC /README.md: No such file or directory #81

Closed chrismark closed 2 years ago

chrismark commented 2 years ago

Using windows 10, python 3.7.12, pip3 21.3.1.

I'm getting this when following instructions from FinRL to install using the url:

D:\finrl\ElegantRL (master)
(env2) λ pip3 install git+https://github.com/AI4Finance-Foundation/ElegantRL.git
Collecting git+https://github.com/AI4Finance-Foundation/ElegantRL.git
  Cloning https://github.com/AI4Finance-Foundation/ElegantRL.git to c:\users\user1\appdata\local\temp\pip-req-build-n8q7n2vi
  Running command git clone --filter=blob:none -q https://github.com/AI4Finance-Foundation/ElegantRL.git 'C:\Users\USER1\AppData\Local\Temp\pip-req-build-n8q7n2vi'
  error: unable to create file elegantrl/envs/EnvSMAC /README.md: No such file or directory
  fatal: cannot create directory at 'elegantrl/envs/EnvSMAC /algs': No such file or directory
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry the checkout with 'git checkout -f HEAD'

WARNING: Discarding git+https://github.com/AI4Finance-Foundation/ElegantRL.git. Command errored out with exit status 128: git clone --filter=blob:none -q https://github.com/AI4Finance-Foundation/ElegantRL.git 'C:\Users\USER1\AppData\Local\Temp\pip-req-build-n8q7n2vi' Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone --filter=blob:none -q https://github.com/AI4Finance-Foundation/ElegantRL.git 'C:\Users\USER1\AppData\Local\Temp\pip-req-build-n8q7n2vi' Check the logs for full command output.

And when I do a git clone I get this:

D:\finrl
(env2) λ git clone https://github.com/AI4Finance-Foundation/ElegantRL eRL
Cloning into 'eRL'...
remote: Enumerating objects: 6994, done.
remote: Counting objects: 100% (623/623), done.
remote: Compressing objects: 100% (307/307), done.
remote: Total 6994 (delta 468), reused 377 (delta 316), pack-reused 6371 eceiving objects:  99% (6925/6994), 54.84Receiving objects: 100% (6994/6994), 57.09 MiB | 8.51 MiB/s, done.

Resolving deltas: 100% (4819/4819), done.
error: unable to create file elegantrl/envs/EnvSMAC /README.md: No such file or directory
fatal: cannot create directory at 'elegantrl/envs/EnvSMAC /algs': No such file or directory
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

And inside that directory is:

D:\finrl
(env2) λ cd eRL

D:\finrl\eRL (master)
(env2) λ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        deleted:    .idea/ElegantRL.iml
        deleted:    .idea/inspectionProfiles/Project_Default.xml
        deleted:    .idea/misc.xml
        deleted:    .idea/modules.xml
        deleted:    .idea/vcs.xml
        deleted:    .idea/workspace.xml
        deleted:    Awesome_Deep_Reinforcement_Learning_List.md
        deleted:    LICENSE
        deleted:    README.md
        deleted:    docs/.readthedocs.yaml
        deleted:    docs/Makefile
        deleted:    docs/build/init.py
        deleted:    docs/make.bat
        deleted:    docs/source/about/init.py
        deleted:    docs/source/about/installation.rst
        deleted:    docs/source/about/overview.rst
        deleted:    docs/source/about/quickstart.rst
        deleted:    docs/source/algorithms/a2c.rst
        deleted:    docs/source/algorithms/ddpg.rst
        deleted:    docs/source/algorithms/double_dqn.rst
        deleted:    docs/source/algorithms/dqn.rst
        deleted:    docs/source/algorithms/init.py
        deleted:    docs/source/algorithms/interppo.rst
        deleted:    docs/source/algorithms/intersac.rst
        deleted:    docs/source/algorithms/maddpg.rst
        deleted:    docs/source/algorithms/mappo.rst
        deleted:    docs/source/algorithms/matd3.rst
        deleted:    docs/source/algorithms/ppo.rst
        deleted:    docs/source/algorithms/qmix.rst
        deleted:    docs/source/algorithms/redq.rst
        deleted:    docs/source/algorithms/sac.rst
        deleted:    docs/source/algorithms/td3.rst
        deleted:    docs/source/algorithms/vdn.rst
        deleted:    docs/source/api/.DS_Store
        deleted:    docs/source/api/cloud.rst
        deleted:    docs/source/api/server.rst
        deleted:    docs/source/api/tutorial.rst
        deleted:    docs/source/cloud/agent.rst
        deleted:    docs/source/cloud/env.rst
        deleted:    docs/source/cloud/net.rst
        deleted:    docs/source/cloud/run.rst
        deleted:    docs/source/conf.py
        deleted:    docs/source/examples/BipedalWalker-v3.rst
        deleted:    docs/source/examples/LunarLanderContinuous-v2.rst
        deleted:    docs/source/images/BipedalWalker-v3_1.gif
        deleted:    docs/source/images/BipedalWalker-v3_2.gif
        deleted:    docs/source/images/File_structure.png
        deleted:    docs/source/images/LunarLanderTwinDelay3.gif
        deleted:    docs/source/images/init.py
        deleted:    docs/source/images/logo.jpg
        deleted:    docs/source/images/logo.png
        deleted:    docs/source/images/overview.jpg
        deleted:    docs/source/images/overview_1.png
        deleted:    docs/source/images/overview_2.png
        deleted:    docs/source/images/overview_3.png
        deleted:    docs/source/images/overview_4.png
        deleted:    docs/source/images/reacher_v2_1.gif
        deleted:    docs/source/index.rst
        deleted:    docs/source/server/agent.rst
        deleted:    docs/source/server/env.rst
        deleted:    docs/source/server/net.rst
        deleted:    docs/source/server/run.rst
        deleted:    docs/source/tutorial/agent.rst
        deleted:    docs/source/tutorial/content.rst
        deleted:    docs/source/tutorial/env.rst
        deleted:    docs/source/tutorial/intro.rst
        deleted:    docs/source/tutorial/net.rst
        deleted:    docs/source/tutorial/run.rst
        deleted:    elegantrl/Demo_Gym_BipedalWalker.py
        deleted:    elegantrl/Demo_Gym_Pendulum.py
        deleted:    elegantrl/Demo_MuJoCo_Ant.py
        deleted:    elegantrl/Demo_PyBullet_Ant.py
        deleted:    elegantrl/__init__.py
        deleted:    elegantrl/__pycache__/__init__.cpython-37.pyc
        deleted:    elegantrl/agents/AgentA2C.py
        deleted:    elegantrl/agents/AgentBase.py
        deleted:    elegantrl/agents/AgentDDPG.py
        deleted:    elegantrl/agents/AgentDQN.py
        deleted:    elegantrl/agents/AgentDoubleDQN.py
        deleted:    elegantrl/agents/AgentMADDPG.py
        deleted:    elegantrl/agents/AgentMAPPO.py
        deleted:    elegantrl/agents/AgentMATD3.py
        deleted:    elegantrl/agents/AgentPPO.py
        deleted:    elegantrl/agents/AgentQMix.py
        deleted:    elegantrl/agents/AgentREDQ.py
        deleted:    elegantrl/agents/AgentSAC.py
        deleted:    elegantrl/agents/AgentStep1AC.py
        deleted:    elegantrl/agents/AgentTD3.py
        deleted:    elegantrl/agents/AgentVDN.py
        deleted:    elegantrl/agents/__init__.py
        deleted:    elegantrl/agents/__pycache__/AgentBase.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/AgentDQN.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/AgentDoubleDQN.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/AgentPPO.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/AgentSAC.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/__init__.cpython-37.pyc
        deleted:    elegantrl/agents/__pycache__/net.cpython-37.pyc
        deleted:    elegantrl/agents/net.py
        deleted:    elegantrl/envs/CarRacingFix.py
        deleted:    elegantrl/envs/DownLink.py
        deleted:    elegantrl/envs/EnvSMAC /README.md
        deleted:    elegantrl/envs/EnvSMAC /algs/qmix.yaml
        deleted:    elegantrl/envs/EnvSMAC /algs/qmix_beta.yaml
        deleted:    elegantrl/envs/EnvSMAC /default.yaml
        deleted:    elegantrl/envs/EnvSMAC /envs/sc2.yaml
        deleted:    elegantrl/envs/EnvSMAC /envs/sc2_beta.yaml
        deleted:    elegantrl/envs/EnvSMAC /installsc2.sh
        deleted:    elegantrl/envs/EnvSMAC /sc2_requirements.txt
        deleted:    elegantrl/envs/Gym.py
        deleted:    elegantrl/envs/IsaacGym.py
        deleted:    elegantrl/envs/__init__.py
        deleted:    elegantrl/envs/__pycache__/__init__.cpython-37.pyc
        deleted:    elegantrl/envs/__pycache__/gym.cpython-37.pyc
        deleted:    elegantrl/envs/utils/config.py
        deleted:    elegantrl/envs/utils/marl_utils.py
        deleted:    elegantrl/envs/utils/parse_task.py
        deleted:    elegantrl/envs/utils/process_ppo.py
        deleted:    elegantrl/envs/utils/torch_jit_utils.py
        deleted:    elegantrl/train/__init__.py
        deleted:    elegantrl/train/__pycache__/__init__.cpython-37.pyc
        deleted:    elegantrl/train/__pycache__/config.cpython-37.pyc
        deleted:    elegantrl/train/__pycache__/evaluator.cpython-37.pyc
        deleted:    elegantrl/train/__pycache__/replay_buffer.cpython-37.pyc
        deleted:    elegantrl/train/__pycache__/run_tutorial.cpython-37.pyc
        deleted:    elegantrl/train/config.py
        deleted:    elegantrl/train/evaluator.py
        deleted:    elegantrl/train/replay_buffer.py
        deleted:    elegantrl/train/run_ensemble.py
        deleted:    elegantrl/train/run_parallel.py
        deleted:    elegantrl/train/run_tutorial.py
        deleted:    elegantrl_helloworld/__init__.py
        deleted:    elegantrl_helloworld/agent.py
        deleted:    elegantrl_helloworld/eRL_demo_PPOinSingleFile.py
        deleted:    elegantrl_helloworld/eRL_demo_QMIXinSingleFile.py
        deleted:    elegantrl_helloworld/eRL_demo_SACinSingleFile.py
        deleted:    elegantrl_helloworld/env.py
        deleted:    elegantrl_helloworld/marl_utils.py
        deleted:    elegantrl_helloworld/net.py
        deleted:    elegantrl_helloworld/run.py
        deleted:    figs/BipdealWalkerHardCore_313score.png
        deleted:    figs/BipedalWalkerHardcore-v2-total-668kb.gif
        deleted:    figs/ElegantRL.png
        deleted:    figs/File_structure.png
        deleted:    figs/LunarLanderTwinDelay3.gif
        deleted:    figs/RL_survey_2020.pdf
        deleted:    figs/RL_survey_2020.png
        deleted:    figs/icon.jpg
        deleted:    figs/original.gif
        deleted:    setup.py
        deleted:    tutorial_BipedalWalker.ipynb
        deleted:    tutorial_Pendulum.ipynb

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .idea/
        Awesome_Deep_Reinforcement_Learning_List.md
        LICENSE
        README.md
        docs/
        elegantrl/
davestanley commented 2 years ago

I have the same issue. It appears to be due to the folder EnvSMAC in elegantrl/envs/ having a trailing space at the end of the folder name, which throws off Windows machines.

Z-2ez4U commented 2 years ago

This issue was fixed and now the cloning works~