pythonmachine-learninggoogle-colaboratoryopenai-gymuniverse

Why am I getting a 'No module named OpenAI' Import error?


so I was trying to make a bot to train on one of the environment of Universe and on running it, I am receiving the error (ImportError: No module named universe). Help me understand what this is and how I can fix it.

My code -

import gym
import universe
env = gym.make('HandManipulateEgg-v0')
observation_n = env.reset()

while True:
    action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]
    observation_n, reward_n, done_n, env.step(action_n)
    env.render ()

My system details - Sayon's System Details

Any help will be deeply appreciated.


Solution

  • Universe appears to have migrated: https://github.com/openai/universe, per the repo you should use retro.

    Note that the docs indicate that you can't simply pip this package and make it work. Specifically: "Building Gym Retro requires at least either gcc 5 or clang 3.4."

    There are additional rendering and ROM integration instructions in the docs as well. Overall, this points to a setup process that might be considerably more involved than you seem to be expecting. Moreover, Windows 7 may very well be incapable of meeting the system requirements for this package.