Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] a bug of traci getConnection function in ubuntu

Depending on the speed of your computer and the size of your scenario, sumo requires some time for startup before it can accept connections from your script.
This is known behavior and can be safely ignored.

Am Mi., 11. Dez. 2019 um 14:19 Uhr schrieb bruce Wang <bruce.wang2016@xxxxxxxxxxx>:
hello,everyone

i have use the traci command to start a sumo and build a connection. Every
time i have started the sumo and then build the connection, there will
happen an  connection error, but retrying in 1 seconds will  succes.

this is why?

environment is ubuntu 18.04, sumo is 1.3.1

code:
command = ['sumo', '-c', './data/exp_0.sumocfg', '--seed', '12',
'--no-step-log', 'True', '--time-to-teleport', '600', '--no-warnings',
'True', '--duration-log.disable', 'True']

traci.start(command, label=sumolabel)

time.sleep(0.5)

self.sim = traci.getConnection(label=sumolabel)


terminal:

Could not connect to TraCI server at localhost:36811 [Errno 111] Connection
refused
 Retrying in 1 seconds
Loading configuration... done.

Could not connect to TraCI server at localhost:46055 [Errno 111] Connection
refused
 Retrying in 1 seconds
Loading configuration... done.

Could not connect to TraCI server at localhost:43085 [Errno 111] Connection
refused
 Retrying in 1 seconds
Loading configuration... done.



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top