Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Error message from traci

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 <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top