Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Could not connect to TraCI server using port %s (%s).

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 or 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 <fechsaer@xxxxxxxxx> 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.


Virus-free. www.avast.com

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top