the runner.py script fails to locate sumo-gui.exe (it checks
%SUMO_HOME%/bin/sumo-gui.exe).
You may need to run the script from a freshly opened command line window
after setting environment variables.
If you cannot get it to work, use the 'start-command-line.bat' script in
sumo/bin and run the script in that window.

2015-06-04 10:52 GMT+02:00 Anmol Dalmia <[email protected]>:

> Hello everyone
>
> I intend to learn to use TraCI, for which I tried to follow the tutorials
> in the SUMO documentation website. As it directs, I tried to run the
> runner.py script in the 'traci_tls' tutorials packaged with the SUMO
> binaries for Windows system.
>
> When I run the Python script from cmd, I get the following error:
>
> Traceback (most recent call last):
>   File "runner.py", line 131, in <module>
>     sumoProcess = subprocess.Popen([sumoBinary, "-c", "data/cross.
> ripinfo-output", "tripinfo.xml", "--remote-port", str(PORT)], stdo
>  stderr=sys.stderr)
>   File "C:\Python27\lib\subprocess.py", line 710, in __init__
>     errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 958, in _execute_chil
>     startupinfo)
> WindowsError: [Error 2] The system cannot find the file specified
>
> I assumed it is because of not declaring the 'SUMO_HOME' environment
> variable. So I declared one and placed the root directory of SUMO in it.
> Echoing it on the cmd as well as running SUMO on various examples after
> this declaration do not result into any error, from which I assume that I
> have declared the variable correctly.
>
> Even after that, this error in TraCI is still there. I have tried defining
> the variable in certain ways like manually appending 'tools' to it and so
> on but I can't seem to overcome this.
>
> Please help me. Thanks in advance.
>
> --
> With Regards
> ANMOL DALMIA
> Summer Research Intern
> Technische Universitat Chemnitz, Germany
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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

Reply via email to