--> --> -->
 
 
<class 'xml.parsers.expat.ExpatError'>
Python 2.7.6: /usr/local/bin/python
Wed Mar 29 08:09:35 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/noritan/www/noritan_org/cgi/twitter-friends.cgi in ()
    247 #   rhs_db : a database for the RHS user
    248 #
=>  249 lhs_db = getrelation(lhs_name)
    250 rhs_db = getrelation(rhs_name)
    251 
lhs_db undefined, getrelation = <function getrelation>, lhs_name = '-'
 /home/noritan/www/noritan_org/cgi/twitter-friends.cgi in getrelation(name='-')
    103 #
    104 def getrelation(name):
=>  105   friends = getusers("friends", name)
    106   followers = getusers("followers", name)
    107   db_inout = {}
friends undefined, global getusers = <function getusers>, name = '-'
 /home/noritan/www/noritan_org/cgi/twitter-friends.cgi in getusers(category='friends', name='-')
     78   response = connection.getresponse()
     79   # Construct as a DOM object
=>   80   dom = xml.dom.minidom.parseString(response.read())
     81   r = {}
     82   for user in dom.getElementsByTagName("user"):
dom undefined, global xml = <module 'xml' from '/usr/local/lib/python2.7/xml/__init__.pyc'>, xml.dom = <module 'xml.dom' from '/usr/local/lib/python2.7/xml/dom/__init__.pyc'>, xml.dom.minidom = <module 'xml.dom.minidom' from '/usr/local/lib/python2.7/xml/dom/minidom.pyc'>, xml.dom.minidom.parseString = <function parseString>, response = <httplib.HTTPResponse instance>, response.read = <bound method HTTPResponse.read of <httplib.HTTPResponse instance>>
 /usr/local/lib/python2.7/xml/dom/minidom.py in parseString(string='', parser=None)
   1926     if parser is None:
   1927         from xml.dom import expatbuilder
=> 1928         return expatbuilder.parseString(string)
   1929     else:
   1930         from xml.dom import pulldom
expatbuilder = <module 'xml.dom.expatbuilder' from '/usr/local/lib/python2.7/xml/dom/expatbuilder.pyc'>, expatbuilder.parseString = <function parseString>, string = ''
 /usr/local/lib/python2.7/xml/dom/expatbuilder.py in parseString(string='', namespaces=True)
    938     else:
    939         builder = ExpatBuilder()
=>  940     return builder.parseString(string)
    941 
    942 
builder = <xml.dom.expatbuilder.ExpatBuilderNS instance>, builder.parseString = <bound method ExpatBuilderNS.parseString of <xml.dom.expatbuilder.ExpatBuilderNS instance>>, string = ''
 /usr/local/lib/python2.7/xml/dom/expatbuilder.py in parseString(self=<xml.dom.expatbuilder.ExpatBuilderNS instance>, string='')
    221         parser = self.getParser()
    222         try:
=>  223             parser.Parse(string, True)
    224             self._setup_subset(string)
    225         except ParseEscape:
parser = <pyexpat.xmlparser object>, parser.Parse = <built-in method Parse of pyexpat.xmlparser object>, string = '', builtin True = True

<class 'xml.parsers.expat.ExpatError'>: no element found: line 1, column 0
      args = ('no element found: line 1, column 0',)
      code = 3
      lineno = 1
      message = 'no element found: line 1, column 0'
      offset = 0