Hi,
I just try it, it keeps saying there is a invalid syntax
File "combine-1.py", line 108
("%s -c %s --remote-port %s" % (sumoBinary, sumoConfig, PORT),
shell=True, stdout = sys.stdout)
^
SyntaxError: invalid syntax
I don't know what's wrong now.
Martin
On Thu, Nov 5, 2015 at 8:54 AM, Jakob Erdmann <[email protected]>
wrote:
> the combine.py file you sent contains the subprocess.Popen command but it
> is lacking the --remote-port argument.
>
> 2015-11-05 15:08 GMT+01:00 martin li <[email protected]>:
>
>> Hi,
>>
>> If you look closely on my combine.py file, I do have this command line
>> in place, and still it would not act.
>>
>> Have a nice day
>> Martin Li
>> (352)989-0355
>> [email protected]
>>
>>
>>
>> On Nov 5, 2015, at 2:45 AM, Jakob Erdmann <[email protected]>
>> wrote:
>>
>> Hello,
>> you need to start sumo with the --remote-port option in order for it to
>> act as a TraCI server:
>> i.e.
>> sumoProcess = subprocess.Popen("%s -c %s --remote-port %s" %
>> (sumoBinary, sumoConfig, PORT),shell=True, stdout = sys.stdout)
>>
>> regards,
>> Jakob
>>
>> 2015-11-05 0:18 GMT+01:00 Martin Li <[email protected]>:
>>
>>> Hi,
>>>
>>> I have a question on TraCi dynamic traffic light, I have found a video on
>>> youtube teaching me how to use TraCI to control the traffic light base on
>>> the density of the road.
>>>
>>>
>>> https://www.youtube.com/watch?v=s6tfcSIBjsU&list=PLxwrwS1SkRx-C5CB3QLTFm2dqkZ7qtlWr&index=8
>>>
>>> but when I try to implement it into my map, all I get is static traffic
>>> light, I have no idea what went wrong, could you help me take a look?
>>>
>>> Thanks
>>> Martin
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>
>>>
>>
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user