-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExperimentGrid fail, FileNotFound error #343
Comments
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.
#3 is actually referenced as part of the process in #2, not a separate thing that has to be done. 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 --exp_name installtest --gamma 0.999 ) and test ExperimentGrid ( python spinup/examples/pytorch/bench_ppo_cartpole.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.
The text was updated successfully, but these errors were encountered: