--> -->
 
 
<type 'exceptions.IOError'>
Python 2.7.1: /usr/bin/python
Sat May 25 12:56:57 2013

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/earwig/public_html/cgi-bin/irc_database.py in ()
    131         return ""
    132     return content
    133 
    134 if __name__ == '__main__':
=>  135     run()
run = <function run>
 /home/earwig/public_html/cgi-bin/irc_database.py in run()
     16 
     17 def run():
=>   18     content = header + javascript() + main() + footer
     19     print content
     20 
content undefined, global header = '<!DOCTYPE html>\n<html>\n<head>\n<title>The Earwig ...d="column-content">\n <div id="content">\n\t\t', global javascript = <function javascript>, global main = <function main>, global footer = '\t\t<div id="column-one">\n\t<div class="portlet" id...pported.</li>\n\t\t\t</ul>\n\t\t</div>\n</body>\n\n</html>\n'
 /home/earwig/public_html/cgi-bin/irc_database.py in main()
     41         main += "\n<fieldset><legend>All entries categorized under \"%s\"</legend><ul style=\"list-style-type:square\">%s</ul></fieldset>" % (viewCat, getCat(viewCat))
     42     else:
=>   43         main += "\n<fieldset><legend>Statistics</legend>%s</fieldset> \n<fieldset><legend>All entries</legend><ul style=\"list-style-type:square\">%s</ul></fieldset> \n<fieldset><legend>All categories</legend><ul style=\"list-style-type:square\">%s</ul></fieldset>" % (statistics(), listAll(), listCats())
     44 
     45     main += """
main = ' <h1 id="firstHeading" class="fir...atabase.py">The source code is available.</a></p>', global statistics = <function statistics>, global listAll = <function listAll>, global listCats = <function listCats>
 /home/earwig/public_html/cgi-bin/irc_database.py in statistics()
     50 
     51 def statistics():
=>   52     f = codecs.open("/home/earwig/database/version.index", 'r')
     53     version = f.read()
     54     f.close()
f undefined, global codecs = <module 'codecs' from '/opt/ts/python/2.7/lib/python2.7/codecs.pyc'>, codecs.open = <function open>
 /opt/ts/python/2.7/lib/python2.7/codecs.py in open(filename='/home/earwig/database/version.index', mode='r', encoding=None, errors='strict', buffering=1)
    879             # Force opening of the file in binary mode
    880             mode = mode + 'b'
=>  881     file = __builtin__.open(filename, mode, buffering)
    882     if encoding is None:
    883         return file
builtin file = <type 'file'>, global __builtin__ = <module '__builtin__' (built-in)>, __builtin__.open = <built-in function open>, filename = '/home/earwig/database/version.index', mode = 'r', buffering = 1

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/home/earwig/database/version.index'
      args = (2, 'No such file or directory')
      errno = 2
      filename = '/home/earwig/database/version.index'
      message = ''
      strerror = 'No such file or directory'