The phenomena persists even with the given route file and without the use of --random.
I tried to get the log file by adding traceFile=<filepath> argument to traci.start but I got this error when running my python script:
TypeError: start() got an unexpected keyword argument 'traceFile'
There could be issues to how I installed sumo so I check with my sumo imports in my python script which are:
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("please declare environment variable 'SUMO_HOME'")
# sys.path.append('/home/abi/Desktop/hdd/sumo/sumo/tools')
from sumolib import checkBinary # noqa
import traci
looking at the output of print(traci.__file__) after the import leads me to my anaconda environment at /anaconda3/envs/envname/lib/python3.7/site-packages/traci/__init__.py where the definition for start is:
def start(cmd, port=None, numRetries=10, label="default"):
"""
Start a sumo server using cmd, establish a connection to it and
store it under the given label. This method is not thread-safe.
"""
if port is None:
port = sumolib.miscutils.getFreeSocketPort()
sumoProcess = subprocess.Popen(cmd + ["--remote-port", str(port)])
_connections[label] = connect(port, numRetries, "localhost", sumoProcess)
switch(label)
return getVersion()
However digging deeper, I found a start definition in main.py at my '/usr/share/sumo/tools/traci' folder which contains the traceFile argument. So I would like to know if the correct traci is imported here
Thank you