Dear all sumo users,
I'm using randomTrips.py to generate random trips with osm (openstreetmap)
map and using the next command.
python C:/Users/I/Downloads/sumo/sumo-0.13.0/tools/trip/randomTrips.py -n
madrid.net.xml -e 1500
and give me the next error
Please mind that the network format has changed in 0.13.0, you may need to
update your network!
Traceback (most recent call last):
File "C:/Users/I/Downloads/sumo/sumo-0.13.0/tools/trip/randomTrips.py",
line 49, in <module>
net = sumolib.net.readNet(options.netfile)
File "C:/Users/I/Downloads/sumo/sumo-0.13.0/tools/trip/randomTrips.py",
line 477, in readNet
parse(filename, netreader)
File "C:\Program Files (x86)\Python27\lib\xml\sax\__init__.py", line 33,
in parse
parser.parse(source)
File "C:\Program Files (x86)\Python27\lib\xml\sax\expatreader.py", line
107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Program Files (x86)\Python27\lib\xml\sax\xmlreader.py", line
123, in parse
self.feed(buffer)
File "C:\Program Files (x86)\Python27\lib\xml\sax\expatreader.py", line
207, in feed
self._parser.Parse(data, isFinal)
File "C:\Program Files (x86)\Python27\lib\xml\sax\expatreader.py", line
301, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File
"C:\Users\Usuario\Documents\Irene\TFG\info\SiMTraM-0.1.1-winbin\sumo-simtram\SumoToSimtram\SumoToSimtram\bin\sumo-winbin-0.13.0\sumo-0.13.0\tools\sumolib\net.py",
line 381, in startElement
self._currentLane = self._net.addLane(self._currentEdge,
float(attrs['speed']), float(attrs['length']))
File "C:\Program Files (x86)\Python27\lib\xml\sax\xmlreader.py", line
316, in __getitem__
return self._attrs[name]
KeyError: 'speed'
any ideas on how to fix these errors?
Thanks,
Irene
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user