When downloading the public dataset, an error occurred:
File "<stdin>", line 1, in <module>
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/gym/envs/registration.py", line 156, in make
return registry.make(id, **kwargs)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/gym/envs/registration.py", line 101, in make
env = spec.make(**kwargs)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/gym/envs/registration.py", line 73, in make
env = cls(**_kwargs)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/gym_hiway/env/competition_env.py", line 120, in __init__
time_resolution=timestep_sec)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/hiway/sumo_traffic_simulation.py", line 60, in __init__
self._road_network, spacing=1., debug=debug)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/hiway/waypoints.py", line 75, in __init__
shape_wps = self._shape_waypoints()
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/hiway/waypoints.py", line 307, in _shape_waypoints
_, new_wps = self._shape_waypoints_along_lane(lane, waypoint_by_lane_memo)
File "/Users/aaron/anaconda3/envs/py3/lib/python3.6/site-packages/hiway/waypoints.py", line 330, in _shape_waypoints_along_lane
lane_width=lane.getWidth(),
AttributeError: 'Lane' object has no attribute 'getWidth'
I find that there are two versions sumo in my system, one is 0.31 and the other is the latest. when I use "which sumo", it is the old one. so I delete this one. Now I can download the pulica dataset successful.
But the error "SUMO_HOME/bin/sumo: No such file or directory" still exists.
Is your SUMO_HOME being set correctly? See the `./install_deps.sh` script.
Posted by: HuaweiUK @ Nov. 7, 2019, 5:51 p.m.I followed steps, but I still cannot set the SUMO_HOME
Posted by: Team136 @ Nov. 8, 2019, 11:41 a.m.Can you confirm what platform you are on? If you're on macOS, you'll need to add
export SUMO_HOME="/usr/local/opt/sumo/share/sumo
to your ~/.bash_profile. If you're on Linux, run,
source /etc/profile.d/sumo.sh
(though that should happen automatically once you log in again)
Posted by: HuaweiUK @ Nov. 8, 2019, 2:09 p.m.Hi, re-reading the thread here and it seems like the issue is the same as in https://competitions.codalab.org/forums/18353/3064/
Make sure to prepend the `$` to the `SUMO_HOME` bash variable, ie.
```
user@computer$ $SUMO_HOME/bin/sumo --version
```
yes, it seems I have solved this problem.
this is the result when running: $SUMO_HOME/bin/sumo --version
Eclipse SUMO Version 1.3.1
Build features: Darwin-17.7.0 x86_64 Clang 10.0.0.10001044 Release Proj GUI
Copyright (C) 2001-2019 German Aerospace Center (DLR) and others; https://sumo.dlr.de
Thank you!
Posted by: Team136 @ Nov. 9, 2019, 3:59 p.m.