Hi,
Am 12.04.2017 um 10:25 schrieb 羅先豪:
> File "D:\sumo\tools\sumolib\net\lane.py", line 109
> raise ValueError, 'edge for this lane not yet defined'
> ^
> SyntaxError: invalid syntax
This error means you have python3 installed, but unfortunately sumo 0.29
has a small glitch which lets it run under 2.7 only. The syntax for
exception raising is different here. You can replace the line by
raise ValueError('edge for this lane not yet defined')
or work with the nightly build.
> Besides, I found that all the program in the folder "tutorial" have a
> python file named "runner".
> Do these "runner" play the same character in each program?
> I mean, when I try to run tutorial programs, first I need to do is to run
> the "runner",
> and then it will open the sumo-gui and start simulation automatically?
Yes, usually it will, although it sometimes might not start the GUI but
rather the command line version.
Best regards,
Michael
P.S. Double posting does not help in getting quicker answers but
subscribing to the list might do the trick.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user