Closed alanballard closed 3 years ago
I found the problem. I misunderstood what we were trying to accomplish by linking Windows and Ubuntu. I thought we were supposed to use Windows-installed python/Anaconda on the front-end and somehow - magically - the miniconda installed on Ubuntu would make spinningup work. So I had some stuff installed on Windows and some in Ubuntu, when all of it needed to be in Ubuntu. Naturally, since everything was not where it was supposed to be, I was getting "file not found"-type messages.
I wasn't able to make the instructors for linking Windows and Ubuntu work properly though, so I followed these instructions to create a virtual Ubuntu desktop that I can start from my Windows installation.
Steps 1 (WSL2) and 2 (Xming X) from here: https://github.com/openai/spinningup/issues/23 I don't know if Xming X was actually necessary, but I installed it so I include it for completeness. I installed Ubuntu for Windows as part of the WSL2 instructions
Everything from "WSL2 installation window interface display" downward here: https://blog.csdn.net/bornfree5511/article/details/108632513 Let Chrome translate the entire page for you
And everything up to "sound realization" here: https://zhuanlan.zhihu.com/p/150555651 Again, let Chrome translate the entire page for you
Now I have an xlaunch shortcut on my Windows10 desktop that creates a blank virtual desktop and running $ startxfce4 in Ubuntu for Windows will display Ubuntu in that virtual desktop. From within Ubuntu, I followed the SpinningUp's instructions on their webpage for installing on Linux distributions and was able to install Anaconda and all of the required packages for SpinningUp.
I can now run the test program ( _python -m spinup.run ppo --hid "[32,32]" --env LunarLander-v2 --expname installtest --gamma 0.999 ) and test ExperimentGrid ( _python spinup/examples/pytorch/bench_ppocartpole.py ) provided by SpinningUp without issue, and I can view the training replay.
So, basically everything has to be installed and run within Ubuntu for Windows and the WSL2/XmingX (step #1)/VcXsrv (step #2) is just a way of setting up a GUI within Windows for that Ubuntu installation (along with Anaconda for Linux, etc.).
I hope this helps someone in the future.
Hello. I'm just getting started with SpinningUp and have encountered an issue when I try to run ExperimentGrid. Full disclosure: I'm running Windows and I followed the instructions linked on the spinning up installation website (installed ubuntu, miniconda, WSL, etc.) but it seems there's lots of places to make errors in that process.
I'm using Anaconda and this is how I created the environment that I'm currently working in. conda create -n NRP_DRL python=3.7 conda activate NRP_DRL conda install tensorflow=1.15.0 conda install -c conda-forge ipykernel openai gym pyglet swig pytorch=1.3.1
I thought I had installed Miniconda3 Linux 64bit for Python 3.7 in Ubuntu, but <$python --version> returns command not found and <$python3 --version> reveals 3.8.10. Not sure if that's important or not.
My problem, short version: I can run SpinningUp's test program without issue but cannot run their test ExperimentGrid code. It seems the code can't find something(?) but I have no idea what or why. My problem, longer version: I can run the SpinningUp's test program without issue:
(NRP_DRL) C:\...\python -m spinup.run ppo --hid "[32,32]" --env LunarLander-v2 --exp_name installtest --gamma 0.999
I can also use the playback tools to view the text output as well as the visual replay of the experiment
However, when I try to run the sample ExperimentGrid script, I get an error: (NRP_DRL) C:\...\python bench_ppo_cartpole.py
If I run the contents of bench_ppo_cartpole.py directly in Jupyter Notebook, I get a slightly different error:
The code:
The error:
I have no idea what any of this means, nor how I might address it. I'm a little stumped as SpinningUp's test program works, but their sample ExperimentGrid does not. I'm hoping that someone can help find and fix whatever is causing this. Thank you.