Hi,

in your traci script use

   sumoCmd = [sumoBinary, <your arguments>]
   print('Run ' + ' '.join(sumoCmd))
   traci.start(sumoCmd)

instead of

    traci.start([sumoBinary, <your arguments>])

Let this modified script run.

Then start a command window (see https://sumo.dlr.de/docs/Basics/Using_the_Command_Line_Applications.html <https://sumo.dlr.de/docs/Basics/Using_the_Command_Line_Applications.html> or https://sumo.dlr.de/docs/Basics/Basic_Computer_Skills.html#running_programs_from_the_command_line <https://sumo.dlr.de/docs/Basics/Basic_Computer_Skills.html#running_programs_from_the_command_line>).

Here you can type or copy the output after the run in the print-statement.

If this shows some errors, you should fix them first

Regards, Harald

Am 11.10.21 um 15:16 schrieb Nao Tomori:
I'm using windows. And no I haven't tried to run the script outside the environment, I don't even have know how?

On Mon, Oct 11, 2021, 7:52 PM Harald Schaefer <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    are you using Windows or Linux?

    Have you tried to run your python script outside anaconda in a
    command window?

    Have you firewall settings blocking these ports?

    Have you tried the command for traci.start with exactly the same
    arguments on  a command line?

    Regards, Harald

    Am 10.10.21 um 09:47 schrieb Starlight Charlotte:

    I’m new to TraCI, I can’t seem to connect to the TraCI server.
    I’m running it on PyCharm 2021.1.3 (Community Edition), Python
    3.8 in an anaconda virtual environment.


    
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
        Virus-free. www.avast.com
    
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>


    <#m_-5779086418942924224_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

    _______________________________________________
    sumo-user mailing list
    [email protected]  <mailto:[email protected]>
    To unsubscribe from this list, 
visithttps://www.eclipse.org/mailman/listinfo/sumo-user  
<https://www.eclipse.org/mailman/listinfo/sumo-user>
    _______________________________________________
    sumo-user mailing list
    [email protected] <mailto:[email protected]>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/sumo-user
    <https://www.eclipse.org/mailman/listinfo/sumo-user>


_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to