0
hereから次のサンプルコードを実行しようとすると、Pythonはremote_manager
属性を見つけることができません。必要なパッケージがすべてインストールされていて、OpenAI gym examplesが正常に動作するように見えます。OpenAIユニバースの例を実行すると、 'VNCEnv'オブジェクトに属性 'remote_manager'がありません
私はLinux Mint 18でPython 3.5を実行しています.PipリポジトリからOpenAIジムとユニバースを取得しました。
import gym
import universe # register Universe environments into Gym
env = gym.make('flashgames.DuskDrive-v0') # any Universe environment ID here
observation_n = env.reset()
while True:
# agent which presses the Up arrow 60 times per second
action_n = [[('KeyEvent', 'ArrowUp', True)] for _ in observation_n]
observation_n, reward_n, done_n, info = env.step(action_n)
env.render()
フルスタックトレースあなたはenv.configure(呼び出すのを忘れて
[2017-01-25 14:04:05,416] Making new env: flashgames.DuskDrive-v0
Traceback (most recent call last):
File "/home/mark/projects/development-playground/src/utils/openai_experiments.py", line 5, in <module>
observation_n = env.reset()
File "/usr/local/lib/python3.5/dist-packages/gym/core.py", line 123, in reset
observation = self._reset()
File "/usr/local/lib/python3.5/dist-packages/universe/wrappers/timer.py", line 15, in _reset
return self.env.reset()
File "/usr/local/lib/python3.5/dist-packages/gym/core.py", line 123, in reset
observation = self._reset()
File "/usr/local/lib/python3.5/dist-packages/universe/wrappers/render.py", line 25, in _reset
observation_n = self.env.reset()
File "/usr/local/lib/python3.5/dist-packages/gym/core.py", line 123, in reset
observation = self._reset()
File "/usr/local/lib/python3.5/dist-packages/universe/wrappers/throttle.py", line 42, in _reset
observation = self.env.reset()
File "/usr/local/lib/python3.5/dist-packages/gym/core.py", line 123, in reset
observation = self._reset()
File "/usr/local/lib/python3.5/dist-packages/universe/envs/vnc_env.py", line 331, in _reset
self._handle_connect()
File "/usr/local/lib/python3.5/dist-packages/universe/envs/vnc_env.py", line 498, in _handle_connect
for remote in self.remote_manager.pop(n=n):
AttributeError: 'VNCEnv' object has no attribute 'remote_manager'
'ピップfreeze'はvenvであなたに何を与えるのでしょうか? – cbll
'pip3 freeze'の出力はここにあります:http://pastebin.com/i3G6sLD5 – wehnsdaefflae