[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] No statistical output file while using Traci
|
I have no idea but I'm glad it works for you.
Greeting Jacob,
So i downloaded sumo 1.8 in a different folder from my 1.2 version, installed it and run the script. Everything works perfectly, i get a fully written statistical output file and i also get a blank error-log file. So the stange thing is that i re tryed my script
with the 1.2 version and now i get also a fully written output file with no error. So i deleted the 1.8 version and i continue to get the output file correct. So how is this possible?
Best regards,
Thodoris Zerlentis
Please try running your script with sumo/sumo-gui version 1.8.0 and if the issue still occurs, provide all input files for reproducing this issue.
Thank you for your response Jacob. I already have as my last command in my script the Traci.close(). By using sumo gui everything works perfectly. What am I missing?
Best regards,
Thodoris
make sure to call traci.close() at the end of your script (The peer from that error message is your python script which suddenly shuts down).
Greeting everyone,
I am using traci commands through a python script in order to run some simulations. My sumo version is 1.2.0. The problem is that after simulation ends with the command traci.close() i get a non fully written statistical output file. I only get the coming lines:
***Starting server on port 42389 ***
Loading net-file from '../../../../.net.xml'... done (13ms).
Loading additional-files from '../../../../.add.xml'... done (12ms).
Loading done.
Simulation version 1.2.0 started with time: 0.00
In the error log i get Error: tcpip::Socket::recvAndCheck @ recv: peer shutdownQuitting (on error).
The strange thing is that if i run the exact same script but using the sumo-gui the output files are fully writen.
My configuration file:
<?xml version="1.0" encoding="iso-8859-1"?>
<input>
<net-file value="net.xml"/>
<route-files value="rou.xml"/>
<additional-files value="add.xml"/>
</input>
<output>
<tripinfo-output value="output/tripinfo.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<report>
<duration-log.statistics value="true"/>
<message-log value="output/statistic.xml"/>
<error-log value="output/error.log.xml"/>
</report>
<time>
<begin value="0"/>
<end value="81600"/>
<step-length value="0.01"/>
</time>
<gui_only>
<start value="true"/>
<gui-settings-file value="gui.xml"/>
</gui_only>
</configuration>
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user