You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Python 3.5.1 with virtualenvwrapper and a minimal gym installation via:
pip install gym
You can reproduce this issue with the basic CartPole example in introduction:
importgymenv=gym.make('CartPole-v0')
env.reset()
for_inrange(1000):
env.render()
env.step(env.action_space.sample()) # take a random action
Running this script results in the following error
File "cartpole.py", line 1, in <module>
import gym
File "/Users/ozkanm/.virtualenvs/gym/lib/python3.5/site-packages/gym/__init__.py", line 4, in <module>
from gym.core import Env, Space
File "/Users/ozkanm/.virtualenvs/gym/lib/python3.5/site-packages/gym/core.py", line 4, in <module>
from gym import error, monitoring
File "/Users/ozkanm/.virtualenvs/gym/lib/python3.5/site-packages/gym/monitoring/__init__.py", line 1, in <module>
from gym.monitoring.monitor import Monitor, load_results, monitors as _monitors
File "/Users/ozkanm/.virtualenvs/gym/lib/python3.5/site-packages/gym/monitoring/monitor.py", line 12, in <module>
from gym.monitoring import stats_recorder, video_recorder
File "/Users/ozkanm/.virtualenvs/gym/lib/python3.5/site-packages/gym/monitoring/video_recorder.py", line 9, in <module>
import StringIO
ImportError: No module named 'StringIO'
The text was updated successfully, but these errors were encountered:
I am using Python 3.5.1 with
virtualenvwrapper
and a minimal gym installation via:pip install gym
You can reproduce this issue with the basic CartPole example in introduction:
Running this script results in the following error
The text was updated successfully, but these errors were encountered: