Open LanceGe opened 7 years ago
Seems to be caused by an erroneous action value. What's the content of dao_gym_mountaincar.py
?
@dementrock I encountered the same error, could you help me out? @LanceGe Have you solved it?
Traceback (most recent call last):
File "/u/gdzhang/Code/rllab/scripts/run_experiment_lite.py", line 137, in
I had the same error. As a temporary fix, casting xvel to float works for me. Change this line: File "/u/gdzhang/Code/rllab/rllab/envs/box2d/mountain_car_env.py", line 52, in reset self.cart.linearVelocity = (float(xvel), self.cart.linearVelocity[1])
Traceback (most recent call last): File "/home/lance/software/rllab/scripts/run_experiment_lite.py", line 137, in
run_experiment(sys.argv)
File "/home/lance/software/rllab/scripts/run_experiment_lite.py", line 121, in run_experiment
method_call(variant_data)
File "/home/lance/coding/rllab/dao/dao_gym_mountaincar.py", line 25, in run_task
algo.train()
File "/home/lance/coding/rllab/dao/dao.py", line 127, in train
observation = self.env.reset()
File "/home/lance/software/rllab/rllab/envs/normalized_env.py", line 52, in reset
ret = self._wrapped_env.reset()
File "/home/lance/software/rllab/rllab/envs/box2d/mountain_car_env.py", line 52, in reset
self.cart.linearVelocity = (xvel, self.cart.linearVelocity[1])
File "/home/lance/anaconda2/envs/rllab3/lib/python3.5/site-packages/Box2D/Box2D.py", line 3556, in SetLinearVelocity
return Box2D.b2BodySetLinearVelocity(self, *args, **kwargs)
TypeError: Converting from sequence to b2Vec2, expected int/float arguments index 0