From: Jakob E. <nam...@go...> - 2013-01-28 12:00:14
|
Hi, the script randomTrips.py uses the "with" statement which is only supported in python 2.5 or later. regards, Jakob 2013/1/26 Jian-Ming Zheng <jm...@gm...>: > Hi all, > > I met a problem when using randomTrips.py to generate random trips. > > I got the following error message when I ran randomTrips.py on my Linux machine. > > $ tools/trip/randomTrips.py > File "tools/trip/randomTrips.py", line 125 > with open(options.tripfile, 'w') as fouttrips: > ^ > SyntaxError: invalid syntax > > However, I can run another script "route2trips.py" located in the same > directory. > > I use SUMO 0.16.0 and Python 2.4.3 on CentOS 5. > > Please help me with the issue. Thanks > > -- > Best Regards, > Zheng Jian-Ming > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > sumo-user mailing list > sum...@li... > https://lists.sourceforge.net/lists/listinfo/sumo-user |