duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
45 stars 16 forks source link

Syntax error when running manual_control.py #151

Closed vromerocano closed 5 years ago

vromerocano commented 5 years ago

Working on Ubuntu 16.04. When running:

./manual_control.py --env-name Duckietown-udem1-v0

I get the following:

INFO:gym-duckietown:Registering gym environment id: Duckietown-loop_obstacles-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-udem1-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-small_loop-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-small_loop_cw-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-straight_road-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-loop_empty-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-loop_dyn_duckiebots-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-zigzag_dists-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-loop_pedestrians-v0 INFO:gym-duckietown:Registering gym environment id: Duckietown-4way-v0 Traceback (most recent call last): File "manual_control.py", line 16, in from gym_duckietown.envs import DuckietownEnv File "/home/varomero/gym-duckietown/gym_duckietown/envs/init.py", line 4, in from gym_duckietown.envs.duckietown_env import DuckietownEnv File "/home/varomero/gym-duckietown/gym_duckietown/envs/duckietown_env.py", line 5, in from ..simulator import Simulator File "/home/varomero/gym-duckietown/gym_duckietown/simulator.py", line 12 done: bool ^ SyntaxError: invalid syntax

bhairavmehta95 commented 5 years ago

What branch are you running?

bhairavmehta95 commented 5 years ago

One of the recent changes we've had is to stop supporting Python 2. Can you let me know what branch / commit you're using + what Python you are running

vromerocano commented 5 years ago

Hi Bhairav, I am running the master branch/ commit a0b4e513c3194475e330e76ca3dacb5059b3ad2f Python 3.5.2

bhairavmehta95 commented 5 years ago

Ah okay - so we've started making changes and utitlizing a feature called dataclasses. You can either pip install dataclasses in Py3.5, or use >= Py3.6 where the library is standard.

vromerocano commented 5 years ago

Nice, problem solved. Thanks a lot! Only additional thing is that I had to pip install pygeometry