AttributeError: 'SerializableStateObservation' object has no attribute 'image'
Closed this issue · 1 comments
ljialin commented
When I ran gym-test.py, I got the following error message:
Traceback (most recent call last):
File "gym-test.py", line 3, in <module>
env = gym.make('aliens-gvgai-v0') #Can't specify levels yet
File "/Users/jliu/Documents/GitHub/gym/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/Users/jliu/Documents/GitHub/gym/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/Users/jliu/Documents/GitHub/gym/gym/envs/registration.py", line 86, in make
env = cls(**self._kwargs)
File "/Users/jliu/Documents/GitHub/GVGAI_GYM/gvgai-gym/gym_gvgai/envs/gvgai_env.py", line 32, in __init__
self.GVGAI = gvgai.ClientCommGYM(gameID, dir)
File "/Users/jliu/Documents/GitHub/GVGAI_GYM/gvgai-gym/gym_gvgai/envs/gvgai/clients/GVGAI-PythonClient/src/utils/ClientCommGYM.py"
, line 64, in __init__
self.reset()
File "/Users/jliu/Documents/GitHub/GVGAI_GYM/gvgai-gym/gym_gvgai/envs/gvgai/clients/GVGAI-PythonClient/src/utils/ClientCommGYM.py"
, line 179, in reset
return self.sso.image
AttributeError: 'SerializableStateObservation' object has no attribute 'image'
This can be fixed by adding
self.image = None
to
__init__
of SerializableStateObservation.py
.
rubenrtorrado commented
Hello,
We have to change the parameters of the competition in Java and python. If we are running DQN in CPU tensorflow. We could be our of time. Please, change the competition parameters in Java and Python. We are going to upload a version with this change