Skip to main content

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

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/


Back to the top