--> --> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.5+: /usr/bin/python
Sat Dec 7 07:11:36 2024

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

 /www/crowfly.net/flowers/report.cgi in ()
    213 
    214 if __name__ == '__main__':
=>  215     page = Report('Flower Database')
    216     page.go()
    217         
page undefined, Report = <class '__main__.Report'>
 /www/crowfly.net/flowers/report.cgi in __init__(self=<__main__.Report object>, page_name='Flower Database')
     22             self.javascript_src = [ jquery.jquery_src,
     23                                     jquery.jquery_bt_src ]
=>   24         self.flowers = Flowers()
     25         self.flower = None
     26         self.flower_name = None
self = <__main__.Report object>, self.flowers undefined, global Flowers = <class 'flowers.Flowers'>
 /home/dlink/flowers/flowers.py in __init__(self=<flowers.Flowers object>)
     56         self.db = db.factory.create( 
     57             engine='mysql', host = 'localhost', db = 'flowers', 
=>   58             user = 'flowers', passwd = 'ChicoryBlue12', dictcursor = True )    
     59         
     60         DataTable.__init__(self, self.db, 'flower')
user undefined, passwd undefined, dictcursor undefined, builtin True = True
 /home/dlink/flowers/db.py in create(self=<db.Factory object>, **kwargs={'db': 'flowers', 'dictcursor': True, 'engine': 'mysql', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'user': 'flowers'})
     98             return self._instances[signature]
     99 
=>  100         db_ = Db(params)
    101         self._instances[signature] = db_
    102         if DEBUG: print "Created."
db_ undefined, global Db = <class 'db.Db'>, params = {'db': 'flowers', 'dictcursor': True, 'engine': 'mysql', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'}
 /home/dlink/flowers/db.py in __init__(self=<db.Db object>, params={'db': 'flowers', 'dictcursor': True, 'engine': 'mysql', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'})
     37                                           passwd = params["passwd"],
     38                                           db     = params["db"],
=>   39                                           port   = int(params["port"]))
     40         # Create cursor:
     41         if 'dictcursor' in params:
port undefined, builtin int = <type 'int'>, params = {'db': 'flowers', 'dictcursor': True, 'engine': 'mysql', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'}
 /usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'flowers', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'})
     79     """Factory function for connections.Connection."""
     80     from MySQLdb.connections import Connection
=>   81     return Connection(*args, **kwargs)
     82 
     83 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'flowers', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'}
 /usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 19b4ab0>, *args=(), **kwargs={'db': 'flowers', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'})
    191         autocommit = kwargs2.pop('autocommit', False)
    192 
=>  193         super(Connection, self).__init__(*args, **kwargs2)
    194         self.cursorclass = cursorclass
    195         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 19b4ab0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 19b4ab0>>, 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>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None>, ...}, 'db': 'flowers', 'host': 'localhost', 'passwd': 'ChicoryBlue12', 'port': 3306, 'user': 'flowers'}

<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
      args = (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
      message = ''