-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Cannot record video via ssh [pyglet requires an X server with GLX] #366
Comments
Xvfb can be tricky to set up to support GLX. There is lots written about it at http://stackexchange.com/search?q=xvfb+GLX Here's what worked for me on ubuntu 14.04 inside a Docker container on an AWS instance:
|
^ The above solution didn't work for me. pyglet still gives the error about needing an X server with GLX. I also tried this with XDummy and Xorg, but after running I'm running on an Ubuntu 14.04 EC2 instance, have all of the NVIDIA drivers installed etc. |
I just tested it on a fresh EC2 instance running Ubuntu 14.04 using the xvfb installed by the command above, and it worked. nVidia DRI drivers might cause problems. Better not to install them. You can test GLX without Gym by running: |
I am trying on the lab servers. The version is: xvfb is installed. However when I run It shows messages as Thanks for attention! |
The logs in |
Yeah it looks like it's the Nvidia drivers issue - I'm using the new p2.xlarge EC2 instance which comes with the nvidia drivers already installed (with opengl, apparently). Trying to uninstall the nvidia drivers and then re-install them with |
After running EDIT: After re-installing the nvidia driver with |
@pemami4911 Hi, can you explain why reinstall nvidia driver with |
Optionally, you could run from NVIDIA official docker container at the server environment where CUDA installed without
So, no need to resintall CUDA, hower you should install NVIDIA Container Runtime for Docker: https://github.com/NVIDIA/nvidia-docker |
@pemami4911 I realize this is an old post, but could you please include a full list of commands that was successful? I will try to remember to do this if I succeed within the week Specifically, I'm confused by this post (below the sentence you're reading right now). Not sure how to reinstall on my EDIT: I think pemami was saying that I need to custom install the drivers from the runfile instead of being lazy and trying to lazily get away with someting like |
Hi!
I am new to gym. I set up the gym environment at a server, and try to run programs through ssh.
Take "examples/agent/random_agent.py" as an example,
if I directly run the code, it shows "Could not create GL context";
if I follow the instructions of https://gist.github.com/joschu/e42a050b1eb5cfbb1fdc667c3450467a using xvfb, it still does not work. The error is
pyglet.gl.glx_info.GLXInfoException: pyglet requires an X server with GLX
I have kept trying other methods and searching for several days, however, none of them work for me.
Do you have any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: