Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO version and platform problems

The most likely cause is a version mismatch.
Please determine the value of TRACI_VERSION from
/usr/local/share/sumo/tools/traci/constants.py that is used within your version 1.0.1 ubuntu docker (found in line 22 of the file).
This value should be 18 for version 1.0.1. and lower values will not work.

regards,
Jakob

Am So., 16. Dez. 2018 um 05:40 Uhr schrieb panpingping (A) <panpingping1@xxxxxxxxxx>:

Hi all,

I encountered one problem, I installed SUMO 1.0.1 on win7 and Ubuntu 16.04 successfully, and ran the same code piece, then I found it works well on Win7 but failed in Ubuntu docker. At the same time, I started another docker to install SUMO 0.32.0 on Ubuntu, I found the same code piece work well also.

My code is very simple, shown as followed, and the attachment provide all the used input file, I tried to use –log, but no output.

 

import traci

sumo_cmd="sumo-gui --net-file luxiang_lize.net.xml --route-files POC3wdv6ie2.rou.xml" \

         " --tripinfo-output trip_log_0b54w98fc.xml --additional-files addition_0ubaqj5y0add.xml,addition2_0t9fipyubadd.xml,addition3_0p9zlyw08add.xml"

sumo_cmd=sumo_cmd.split(" ")

cnt=2902

while True:

    cnt+=1

    print(cnt)

    traci.start(sumo_cmd,cnt)

    simulate_count = 0

    while simulate_count < 11000:

        print(simulate_count)

        simulate_count += 1

        traci.simulationStep()

traci.close()

 

 

The error message of SUMO 1.0.1 on Ubuntu is  

Traceback (most recent call last):

  File "/mnt/test/test/test.py", line 20, in <module>

    traci.simulationStep()

  File "/usr/local/share/sumo/tools/traci/__init__.py", line 149, in simulationStep

    responses = _connections[""].simulationStep(step)

  File "/usr/local/share/sumo/tools/traci/connection.py", line 323, in simulationStep

    result = self._sendExact()

  File "/usr/local/share/sumo/tools/traci/connection.py", line 99, in _sendExact

    raise FatalTraCIError("connection closed by SUMO")

traci.exceptions.FatalTraCIError: connection closed by SUMO

 

 

 

 

_______________________________________________
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