--> --> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.5.2: /usr/bin/python
Mon Aug 31 00:55:17 2015

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

 /var/www/base.kendra.org.uk/cgi-bin/test.py in ()
   29 
   30 # Wiki rendering code
   31 import wiki
   32 
   33 # CSV parser
wiki undefined
 /var/www/base.kendra.org.uk/cgi-bin/wiki.py in ()
    9 # Wiki-rendering of input data
   10 
   11 import string, re, html, db_store, time
   12 
   13 from db_store import SUBJ, PRED, OBJ, CONTEXT, ID
string = <module 'string' from '/usr/lib/python2.5/string.pyc'>, re = <module 're' from '/usr/lib/python2.5/re.pyc'>, html = <module 'html' from '/var/www/base.kendra.org.uk/cgi-bin/html.py'>, db_store undefined, time undefined
 /var/www/base.kendra.org.uk/cgi-bin/db_store.py in ()
   70 
   71 # these are persistent and single-threaded
   72 conn = open_db_connection()
   73 cursor = conn.cursor()
   74 
conn undefined, open_db_connection = <function open_db_connection at 0x825bd84>
 /var/www/base.kendra.org.uk/cgi-bin/db_store.py in open_db_connection()
   67       return MySQLdb.connect(db="kendrabase", user = "kendrabase",
   68                           host="localhost",
   69                           passwd = "gleepitypwa")
   70 
   71 # these are persistent and single-threaded
passwd undefined
 /var/lib/python-support/python2.5/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'kendrabase', 'host': 'localhost', 'passwd': 'gleepitypwa', 'user': 'kendrabase'})
   72     """Factory function for connections.Connection."""
   73     from connections import Connection
   74     return Connection(*args, **kwargs)
   75 
   76 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'kendrabase', 'host': 'localhost', 'passwd': 'gleepitypwa', 'user': 'kendrabase'}
 /var/lib/python-support/python2.5/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 82c1a24>, *args=(), **kwargs={'db': 'kendrabase', 'host': 'localhost', 'passwd': 'gleepitypwa', 'user': 'kendrabase'})
  168         kwargs2['client_flag'] = client_flag
  169 
  170         super(Connection, self).__init__(*args, **kwargs2)
  171 
  172         self.encoders = dict([ (k, v) for k, v in conv.items()
builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 82c1a24>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 82c1a24>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x824056c>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x8240224>, ...}, 'db': 'kendrabase', 'host': 'localhost', 'passwd': 'gleepitypwa', 'user': 'kendrabase'}

<class '_mysql_exceptions.OperationalError'>: (1040, 'Too many connections')
      args = (1040, 'Too many connections')
      message = ''