I’m trying to create a training bot for a gym environment but keep running into module import issues
Hey everyone! I’ve been working on a machine learning project where I want to build a bot that can learn from gym environments. However, when I try to run my script, I get this frustrating error: ImportError: No module named universe
I’m not sure what’s causing this problem or how to fix it properly. Has anyone faced something similar before?
Here’s the code I’m using:
import gym
import universe
my_env = gym.make('BlockPuzzle-v0')
state = my_env.reset()
while True:
moves = [[('KeyEvent', 'ArrowRight', True)] for s in state]
state, score, finished, info = my_env.step(moves)
my_env.render()
I’m running this on a Windows machine with Python installed. Any suggestions on what might be going wrong here? Thanks in advance for any help!