Hello everyone,

I would like to use randomTrips.py file to generate random trips. However,
when I run it in command line I am getting this error:

  File
"/Users/burakuzkent/Downloads/sumo-0.12.2/tools/trip/randomTrips.py", line
49, in <module>
    net = sumonet.readNet(options.netfile)
  File
"/Users/burakuzkent/Downloads/sumo-0.12.2/tools/trip/../lib/sumonet.py",
line 447, in readNet
    parser.parse(filename)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py",
line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/xmlreader.py",
line 123, in parse
    self.feed(buffer)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py",
line 210, in feed
    self._parser.Parse(data, isFinal)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py",
line 304, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File
"/Users/burakuzkent/Downloads/sumo-0.12.2/tools/trip/../lib/sumonet.py",
line 363, in startElement
    self._currentEdge = self._net.addEdge(attrs['id'], attrs['from'],
attrs['to'], prio, attrs['function'])
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/xmlreader.py",
line 316, in __getitem__
    return self._attrs[name]
KeyError: 'function'


I am using a MAC computer. I spent a lot of time on this but could not find
any solution. I will really appreciate your help.

*Kind Regards*
*-----------------------------------------------------*
*Burak Uzkent*
*PhD Student*
*Graduate Research Assistant*
*Imaging Science *
*Rochester Institute of Technology*
*Web: http://people.rit.edu/bxu2522/ <http://people.rit.edu/bxu2522/> *
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to