-
Notifications
You must be signed in to change notification settings - Fork 68
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
Failed to initialize OpenGL #1
Comments
I found the problem, well i call:
and the same error is happen. |
Can you try running |
It can run, thank you!!! |
@avisingh599 @leeivan1007 Hi, this problem happens because of the contradiction between MjViewer.render() method and MjSim.render() method, as posted in openai/mujoco-py#187 and solved by @vitchyr . But this solution only solves the problem partially, which means you can use either of the method by enable and disable the LD_PRELOAD variable. However, if I need both of these two methods work in a same script, what should I do? This case happens when I create an image based environment and want to render the scene later. I think the image based env like env = gym.make('Image48SawyerReachXYEnv-v1') # sim.render() used
obs = env.reset()
for _ in range(2000):
action = env.action_space.sample()
obs, rew, done, info = env.step(action)
env.render() #
if done:
env.reset() So in this case, the problem still exists, right? |
Yeah, I'm not aware of any clean way to use the two different rendering methods at the same time. If you really want to use them both, you could try changing the environment variable within python, but it would be a pretty hacky solution. |
HI~ it is a frustrating thing, I does not find the reason I think that reason is package. |
I am not sure what the reason is behind these mujoco-py/opengl errors, since the |
ok ! thank you |
hello , is there a solution to that problem ? |
This works for me:
|
I find this but didn't help for me...
https://github.com/openai/mujoco-py/issues/187
My devire is ubuntu16, and has run FetchPickAndPlace-v1 from (penai/baselines) then it can run with env(softlearning)
The text was updated successfully, but these errors were encountered: