kosenina / EVPS

Emergency Vehicle Preemption Simulator
2 stars 1 forks source link

Connection' object has no attribute 'trafficlights #1

Open den-vasyliev opened 5 years ago

den-vasyliev commented 5 years ago

Hi!

Try to run your demo, but:

File "/usr/local/Cellar/sumo/1.3.1/share/sumo/EVPS/simulation/road_traffic_control.py", line 18, in init for tl_id in self.traci_conn.trafficlights.getIDList()} AttributeError: 'Connection' object has no attribute 'trafficlights'

kosenina commented 5 years ago

Hey, sorry for late response. You are probably using different version of Traci library. On this link you can check the library documentation to find out what has changed regarding trafficlights API (my first thought is that you shoud try with self.traci_conn.trafficlight.getIDList() source: link)