Possible there is an error in 005.sumocfg which prevented the simulation
from starting.
Add the option <log value="log.txt"/> to your sumocfg and then look into
the generated file log.txt to check for errors.
regards,
Jakob

2017-12-04 4:24 GMT+01:00 羅先豪 via sumo-user <[email protected]
>:

> Hello,
>
> I wanted to use python to trigger sumo running repeatedly and
> automatically,
> but found that it can only run the simulation for 4 times.
> There's error message when it tried to run the fifth time:
>
> Traceback (most recent call last):
>   File "D:\005\runner.py", line 180, in <module>
>     traci.start ([sumoBinary,
> "-c","005.sumocfg","--tripinfo-output","tripinfo_
> 005.xml","--start","--quit-on-end"])
>   File "D:\sumo\tools\traci\__init__.py", line 82, in start
>     sumoProcess = subprocess.Popen(cmd + ["--remote-port", str(port)])
>   File
> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 596, in __init__
>     _cleanup()
>   File
> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 205, in _cleanup
>     res = inst._internal_poll(_deadstate=sys.maxsize)
>   File
> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 1035, in _internal_poll
>     if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
> OSError: [WinError 6] The handle is invalid.
>
> How can I fix it?
> Thanks!
>
> Al Lo
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to