use traci.start([sumoBinary, ....], traceFile="traci.log")

Am Di., 25. Aug. 2020 um 13:34 Uhr schrieb Weronika <
[email protected]>:

> Hi Harald, hi Jakob,
> I tried to do what Harald recommended. (took me some time, as I faced a
> few problems on my way, but now almost all are solved)
> The last step in which I am supposed to do:
> gdb --args sumoD -c debug.sumocfg
> gives me back:
>
> sumoD: No such file or directory.
> even if sumoD exists...
>
> To double-check I tried in the terminal:
>
> weronika@MBP-Weronika ~ % sumo-gui
>
> (this worked)
>
> weronika@MBP-Weronika ~ % sumo-guiD
>
> zsh: command not found: sumo-guiD
>
>
> Do you know what could I try to solve it?
>
>
> Today I wanted also to try what Jakub recommended.
>
> My traci.start is:
>
> traci.start([sumoBinary, "-c", '../' + selectedFolder + '/osm.sumocfg',
>              "--tripinfo-output", '../' + selectedFolder + 
> '/out/tripinfo.out.xml',
>              "--summary-output", '../' + selectedFolder + 
> '/out/summary.out.xml',
>              "--netstate-dump", '../' + selectedFolder + 
> '/out/netstate.out.xml',
>              "--vehroute-output", '../' + selectedFolder + 
> '/out/route.out.xml',
>              "--duration-log.statistics", "true",
>              "--log", '../' + selectedFolder + '/out/log.txt',
>
>             traceFile="traci.log",
>              "--vehroute-output.route-length", "true"])
>
> Adding it directly like this doesnt work, as it is invalid syntax I will need 
> to adapt it to my traci.start... (I tried a few modification, but without any 
> success) Could you please help my with how to do it?
>
> Thank you for your support
>
> best,
>
> Weronika
>
>
> wt., 25 sie 2020 o 07:45 Jakob Erdmann <[email protected]> napisał(a):
>
>> Alternatively, you can run your project with traci.start(...,
>> traceFile="traci.log") and send in your input files along with traci.log.
>>
>> Am Sa., 22. Aug. 2020 um 22:12 Uhr schrieb Harald Schaefer <
>> [email protected]>:
>>
>>> Hi Weronika,
>>>
>>> it may be, that Sumo terminates unexpected.
>>>
>>> Please build the Debug version and run SUMO with gdb.
>>>
>>> If Sumo terminates, the stack trace can help the developers
>>>
>>> See
>>> https://sumo.dlr.de/docs/Installing/Linux_Build.html#building_the_sumo_binaries_with_cmake
>>> and
>>> https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#debugging_a_traci_session_on_linux
>>>
>>> Best regards, Harald
>>> Am 21.08.20 um 18:30 schrieb Weronika:
>>>
>>> Hi!
>>>
>>> I got *a new build of SUMO* and I am getting an error 
>>> *traci.exceptions.FatalTraCIError:
>>> connection closed by SUMO*.  The last time when I ran it and it worked
>>> properly was with the build from ~15.06.
>>>
>>> (The problem already appeared before when I used the build from 12.07,
>>> but I left it as I thought maybe will not occur later.)
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "runner.py", line 376, in <module>
>>>
>>>     run()
>>>
>>>   File "runner.py", line 265, in run
>>>
>>>     traci.simulationStep()
>>>
>>>   File "/Users/weronika/Desktop/sumo/tools/traci/main.py", line 210, in
>>> simulationStep
>>>
>>>     return _connections[""].simulationStep(step)
>>>
>>>   File "/Users/weronika/Desktop/sumo/tools/traci/connection.py", line
>>> 291, in simulationStep
>>>
>>>     result = self._sendCmd(tc.CMD_SIMSTEP, None, None, "D", step)
>>>
>>>   File "/Users/weronika/Desktop/sumo/tools/traci/connection.py", line
>>> 178, in _sendCmd
>>>
>>>     return self._sendExact()
>>>
>>>   File "/Users/weronika/Desktop/sumo/tools/traci/connection.py", line
>>> 88, in _sendExact
>>>
>>>     raise FatalTraCIError("connection closed by SUMO")
>>>
>>> traci.exceptions.FatalTraCIError: connection closed by SUMO
>>>
>>>
>>>
>>> I tried: „>> run your simulation with the option
>>> --duration-log.statistics and --log
>>>
>>> >> logfile.txt
>>>
>>> >> you will find the results in logfile.txt”
>>>
>>> When the simulation gets this error the log file is empty.
>>>
>>>
>>> Worth to mention is that at the beginning of my simulation I set up a
>>> number for using randomTrips.py and generate trips file
>>>
>>>
>>> command = 'python ' + os.environ['SUMO_HOME'] + '/tools/randomTrips.py
>>> -n osm.net.xml -p ' + vehiclesDensity +' -o trips.trips.xml '+
>>> '--trip-attributes=\'departLane=\"best\" departSpeed=\"max\" type=\"car\"
>>> departPos=\"random\"\' --validate'
>>>
>>> os.system(command)
>>>
>>>
>>> And depending on this argument the simulation fails or not (mostly
>>> fails..).
>>>
>>>
>>> I would appreciate your help on how I can find the problem. I checked
>>> the input files and they look fine (and works with earlier versions)
>>>
>>>
>>> Best,
>>>
>>> Weronika
>>>
>>>
>>> _______________________________________________
>>> sumo-user mailing [email protected]
>>> To unsubscribe from this list, visit 
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to