question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the version of mujoco and gym that is required to run a baseline code?

See original GitHub issue

I currently have gym==0.9.3 and mujoco version at mujoco-py==0.5.7. I get error when I run the PPO code. Below is the error I get from gym.wrappers import FlattenDictWrapper ImportError: cannot import name 'FlattenDictWrapper'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
pzhokhovcommented, Sep 29, 2018

Hi @NishanthVAnand! Thanks for pointing it out, we’ll constrain the version of gym required by baselines. You’ll need gym >= 0.10, and mujoco>=1.50 (I’d recommend installing the latest if you don’t have a particular attachment to the old version) pip install gym[mujoco] --update would pull latest gym and a correct version of mujoco with it.

0reactions
DongChen06commented, Apr 29, 2019

So,I think you can install both of them. Just modify the path on your bashrc file before you decide which one you want to use.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Muguangfeng notifications@github.com Sent: Monday, April 29, 2019 5:18 AM To: openai/baselines Cc: Jay Chen; Comment Subject: Re: [openai/baselines] What is the version of mujoco and gym that is required to run a baseline code? (#625)

Hi! I installed gym0.10.5 by running pip install gym==0.10.5, but it is still the problem:ImportError cannot import name FlattenDictWrapper. Does I need to run pip install gym[all]. If i do like this, it tell me that i need install mujoco200. I don’t want to install mujoco200, because my another code requests mujoco131. Is there any solutions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openai/baselines/issues/625#issuecomment-487511625, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGETZR26TJC3OL4P56TQ3DLPS24P5ANCNFSM4FX5JTUA.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing MuJoCo to Work With OpenAI Gym Environments
In this article, I'll show you how to install MuJoCo on your Mac/Linux machine in order to run continuous control environments from OpenAI's ......
Read more >
Installation and Configuration of MuJoCo, Gym, Baselines
Tutorial: Installation and Configuration of MuJoCo, Gym, Baselines. Posted on June 19, 2019 by Shiyu Chen in Reinforcement Learning Tutorial.
Read more >
Understanding OpenAI baseline source code and making it do ...
The main specification of this environment is that it needs to be in the form(thanks again Ashish!) class Env(gym.Env): metadata = {'render.
Read more >
Baseline models Gym (for MuJoCo environments) - AllenAct
This project contains the code for training baseline models for the tasks under the MuJoCo group of Gym environments, included "Ant-v2", "HalfCheetah-v2", ...
Read more >
OpenAI's Gym and Baselines on Windows - Samuel Arzt
At the end of this post you will be able to train a Deep Reinforcement Learning agent to play Atari 2600 games, such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found