Skip to main content

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

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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top