Hello all,
I am attempting to convert an xml output file to csv. I have done this before
several times already, but for this particular instance I am receiving an error
that I am having trouble understanding. The error is as follows:
jerryc92@jerryc92-VirtualBox:~/sumo-0.25.0/docs/tutorial/Example2/TestSim/10-90/upstream$
python /home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py
reroutetestIDM10-90-up.out.xmlTraceback (most recent call last): File
"/home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py", line 266, in <module>
main() File "/home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py", line 254, in
main attrFinder = AttrFinder(options.xsd, options.source, options.split)
File "/home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py", line 83, in __init__
xml.sax.parse(source, self) File "/usr/lib/python2.7/xml/sax/__init__.py",
line 33, in parse parser.parse(source) File
"/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source) File
"/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 210,
in feed self._parser.Parse(data, isFinal) File
"/usr/lib/python2.7/xml/sax/expatreader.py", line 304, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs)) File
"/home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py", line 119, in startElement
if not self.addElement(root, name, self.depth()): File
"/home/jerryc92/sumo-0.25.0/tools/xml/xml2csv.py", line 92, in addElement if
name not in self.depthTags[root][depth]:IndexError: list index out of range
The xml file is created using vehroute-output in the configuration. I have
converted xml files to csv before using this command. Any help with
understanding this problem is greatly appreciated! Jose CazaresM.S.
Transportation EngineeringTexas A&M University(956) 432-7753
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user