I am not sure if it acceptable in your use case, but in my simulation to use:
self.sumoprocess = subprocess.Popen([sumo_exe, '-c', self.sumocfg])
traci.init(self.port)
Where self.port holds the port as set up in the configuration file
works as expected.
I also use
traci.close()
self.sumoprocess.wait()
at the end.
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user