Hi Francois,
the script you mention is not meant to be imported but to be called
separately. In any case the error means your python path is not set
correctly, see http://sumo.dlr.de/wiki/Tools/Sumolib

Regards,
Michael

Am 11.06.2015 um 02:44 schrieb François Vaudrin:
> Hello,
> 
> Probably a trivial question but how does one incorporate the results in a 
> Traci script. For example, if I want to put 
> generateITetrisIntersectionMetrics.py in runner.py where do I call it and how?
> 
> If I write import generateITetrisNetworkMetrics in runner.py I get this error 
> message:
> ImportError: No Module named sumolib.net ....    (line 24 in 
> generateITetrisNetworkMetrics.py)
> 
> Thank you
> 
> François
> 
> -----------------------------------------
> 
> import generateITetrisNetworkMetrics
> 
> def run():
> 
>       ???  generateITetrisNetworkMetrics ???
>  
>     """execute  TraCI ""
>     traci.init(PORT)   
>     step = 0    
>    while step < 2000:          
>         traci.simulationStep()
> 
>         
>       …. MY_CODE …..
> 
>                step =step+ 1
>    
> ------------------------------------------------------------------------------
> _______________________________________________
> 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