-
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
Running spinningup in Linux Subsystem on Windows (Success) #23
Comments
Awesome! Thanks for doing this. I've updated the installation page to reference this issue, so others can follow your instructions. |
Thanks! |
Works as advertised. I did have to install Open GL prior to running the animated examples though. The exact name of the package escapes me but it is explicitly mentioned in the error message that occurred when running the example. Fantastic work here. Thanks for sharing! |
It was this package: sudo apt-get install python-opengl |
Thanks, so far so good. |
This is fantastic, thank you |
Has anyone tried using Microsoft's version of MPI? |
Spinning Up should also work on Windows though. Limiting its usage to Linux and Mac means shutting the door to many potential users, contributors and people that eager to learn. |
Thanks a lot for your suggestion. I have just one question left. If we install spinning up in this way on WSL, could we still use GPU-version Pytorch? |
First of all, its great you linked the WSL installation on SpinUp's page. I have git cloned and setup the latest Spinup in both my Conda environment (Win10) and Ubuntu (WSL). But despite following the Installation instructions diligently, I am having issues with executing the "installtest" program. An excerpt of the error message is attached below. On the other hand, it works perfectly fine on my native Linux machine. =======================
|
I only tried running it on CPU, never tried GPU from WSL. Edit : It looks like WSL does not support GPU by default. |
Hi, it is sadly found that GPU pass through in WSL is currently NOT possible. Though there are some tricks to use GPU powered python programs in WSL, these programs are actually running in Windows. Thus, these tricks are useless for spinningup. |
Thanks for the info. |
Hi, |
The only thing different between my native unix machine and my Windows is the former has an nvidia GPU; my windows machine is an intel NUC i7 |
Hi @kevin5k |
@ibrahiminfinite, |
Thanks for your help. I discovered that the issue is possibly caused by nested activation of environments (unusual). I have since re-installed the spinningup in the proper environment and it works now in WSL-Ubuntu!!! On a similar note, I encountered another issue regarding mpi4py and have managed to solved that too. For those interested, I have posted the mpi4py solution here. Hope it helps those. |
I've follwed this guide today with Ubuntu on WSL and it mostly works, however trying to view the video with I've followed all the steps, and added Any suggestions? |
Here's slightly cleaned up version:
Make sure to install xming. |
Mine worked like a charm. Thank you! |
Done here too on Windows 10 Pro. |
All works for me except video rendering:
And Xming get crached after this. |
@clearsense |
It worked only once, maybe after install and run other graphical linux app. |
I have the same issue .. Training with plot completes, but no render of video. Instead a black screen shows up for several seconds then closes. Is there a way to somehow export the results to view externally? Otherwise, can you please help with a fix? Using Ubuntu 18.04 LTS on Windows 10. |
@clearsense @rayanelhelou Same issue for me too, did you find a solution? |
No |
The following fixed this for me Run "export DISPLAY=:0.0" in WSL Then restart WSL and all worked fine |
@Jamesohare1 nope, not worked for me. I also tried add
Maybe this error could be fixed other way, but I don't use spinningup for now. |
@joaomacp @ibrahiminfinite @clearsense
Same issue
It works for me. |
@sephirxth It works for me! Previous problems about returning the black screen of in Xming resolved! Thanks a lot! |
The method is useful for WSL1, but not working with WSL2, because WSL2 has it's own IP address, so The method for installing a GUI window for WSL1 and WSL2 with xfce4 desktop can be found at https://blog.csdn.net/bornfree5511/article/details/108632513. Sorry for that it doesn't have an English version, maybe you can use google translation. And after win10 build 20145 version, you can try a GPU support with WSL2, it can be used to train neural networks. The version after 20145 can be get by open the insider preview. And these days (9-27-2020) , I don't recommed to upgrade, cause the latest version is 20211, and it break the wsl down. |
To add to the thread, this resolved my issues. I had to run
Then I had to add the miniconda3 bin folder to the path for minianaconda to work:
|
whats you feedback? is it good? |
It works for me too, I used Xming before. thank you |
For people who are on windows 10 and do not have linux but want to make things work.
Open cmd, type in "bash", this will switch the cmd to WSL terminal, then run the following it will enable GUI for WSL .
Copied from this stackoverflow answer.
The text was updated successfully, but these errors were encountered: