Hello,
I am trying to interface with SUMO from Python, following the steps in the 
documentation:
https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html

Sumo opens, without opening the sumocfg-file and I get the error:

Retrying in 1 seconds
Could not connect to TraCI server at localhost:51329 [WinError 10061] No 
connection could be made because the target machine actively refused it

I checked the firewall as suggested in the mailing list (27 Aug 2017 on a 
similar issue) and turned it off, but it did not work. Running as admin changed 
nothing either.
I'm using SUMO 1.7 on Windows 10.

The script I used (from the documentation):
import os
import sys
sys.path.append("C:/Program Files (x86)/Eclipse/SUMO 1.7/tools")
import traci

sumoBinary = "C:/Program Files (x86)/Eclipse/SUMO 1.7/bin/sumo-gui"
FolderPath = 
"C:/Users/garaw/Desktop/SUMO-Unity3D-connection-master/SUMO_Networks"
sumoCmd = [sumoBinary, "-c", FolderPath + "Network_01.sumocfg"]
traci.start(sumoCmd)
step = 0
while step < 1000:
    traci.simulationStep()
    if traci.inductionloop.getLastStepVehicleNumber("0") > 0:
        traci.trafficlight.setRedYellowGreenState("0", "GrGr")
    step += 1

traci.close()

Thanks for your help.
Regards,
Liesa Zimmermann


_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to