My mistake. There is currently no option for suppressing errors.
However, in your traci script you can start sumo the "old fashioned" way
using subprocess.Popen
with argument stderr=subprocess.DEVNULL. See
https://github.com/eclipse/sumo/blob/cfc646125161aaf459bcf5daef4612890de523ee/tools/traci/main.py#L113-L133

regards,
Jakob

Am Mo., 2. Dez. 2019 um 21:48 Uhr schrieb Pratik Dutta <[email protected]
>:

> I have already used -W as true.  --no-warnings and -W are identical,
> Again, using both gives an error like -
>
> Error: A value for the option 'no-warnings' was already set.
>  Possible synonymes: W, suppress-warnings
> Error: Could not parse commandline options.
> Quitting (on error).
>
> I also replace -W by --no-warnings which gives the same result.
>
>
>
> *Regards,*
> Pratik Dutta
> Mob: 8017342498
>
>
> On Mon, Dec 2, 2019 at 2:55 PM Jakob Erdmann <[email protected]>
> wrote:
>
>> sumo option '--no-warnings' should help.
>>
>> Am Mo., 2. Dez. 2019 um 10:23 Uhr schrieb Pratik Dutta <
>> [email protected]>:
>>
>>> Hello Everyone,
>>>
>>> I am facing an error like this:
>>> Error: Answered with error to command 0xc4: Route replacement failed for
>>> v49
>>>
>>> However, I am cool with the error, but the only thing I need is to *not
>>> print* the error message in the console during running the program.
>>>
>>> I am using traci with "sumo" instead of "sumo-gui" and the code follows-
>>>
>>> traci.start(["sumo-gui", "-c", "file.sumocfg", "--tripinfo-output",
>>> "tripinfo-output.xml",
>>>                      , "--no-step-log", "true", "-W", "true",
>>>  "--duration-log.disable"],label="master")
>>>
>>> *Regards,*
>>> Pratik Dutta
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to