Hi François,

you don't need to set the SUMO_HOME variable each time - you only have to 
restart your comandline once after you changed/added a system variable.

To start a python script (like runner.py) from command line, make sure you have 
your python directory (e.g C:/python27) in your windows path. Then you can call 
the script from commandline via
"Python C:/mydirectory/mypythonscript.py"

Regards,
Marcus


> Am 22.03.2015 um 19:11 schrieb François Vaudrin 
> <[email protected]>:
> 
> Hi,
> 
> This was a problem with the variable SUMO_HOME
> 
> In my case, there are three steps:
> 
> 1- fv@fv-Studio-Hybrid-140g:$ export SUMO_HOME=/usr/local/src/sumo-0.22.0
> 
> 2- fv@fv-Studio-Hybrid-140g:$ cd directory_of_python_script
> 
> 2- fv@fv-Studio-Hybrid-140g:directory_of_python_script$ python runner.py
> 
> 
> Note that you should always set the SUMO_HOME variable each time you open a 
> new terminal.
> I don't need so far to use Python IDLE but maybe it would be useful later.
> 
> Hope that help
> 
> François 
> ________________________________________
> De : François Vaudrin [[email protected]]
> Date d'envoi : 22 mars 2015 00:43
> À : [email protected]
> Objet : [sumo-user] running TraCI
> 
> Hello,
> 
> It might looks like a basic question but it's been a moment that I try to run 
> the example of Traci from complex/tutorial/traci_tls
> In Python console, do we only need  to write " runner" for starting the 
> simulator?
> Do I need to type something else on the console ?
> 
> Here below are the commands that I have written in IDLE Python console 
> ....but nothing happens (SUMO does not start).
> 
> Python 2.7.6 (default, Mar 22 2014, 22:59:38)
> [GCC 4.8.2] on linux2
> Type "copyright", "credits" or "license()" for more information.
>>>> 
>>>> import os
>>>> os.chdir("/usr/local/src/sumo-0.22.0/tests/complex/tutorial/traci_tls")
>>>> import runner
>>>> runner
> <module 'runner' from 'runner.py'>
> 
> Regards
> 
> François Vaudrin, ing, MBA
> Laboratoire ERICAE
> Faculté des Sciences et de Génie
> Université Laval, CANADA
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to