OperationalError
Python 2.4.1: /usr/bin/python2.4
Sun Nov 23 15:12:01 2008

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

 /usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py in run(self=<flup.server.scgi_base.Request object>)
  181 
  182         try:
  183             self._conn.server.handler(self)
  184         except:
  185             self.logger.exception('Exception caught from handler')
self = <flup.server.scgi_base.Request object>, self._conn = <flup.server.scgi_base.Connection object>, self._conn.server = <flup.server.scgi.WSGIServer object>, self._conn.server.handler = <bound method WSGIServer.handler of <flup.server.scgi.WSGIServer object>>
 /usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py in handler(self=<flup.server.scgi.WSGIServer object>, request=<flup.server.scgi_base.Request object>)
  427             self._appLock.acquire()
  428         try:
  429             result = self.application(environ, start_response)
  430             try:
  431                 for data in result:
result = None, self = <flup.server.scgi.WSGIServer object>, self.application = <selector.Selector object>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/lukearno.com', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_HOST': 'lukearno.com', 'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', 'PATH_INFO': '/blog/tags/support', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/lib/python2.4/site-packages/selector-0.8.8-py2.4.egg/selector.py in __call__(self=<selector.Selector object>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/lukearno.com', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_HOST': 'lukearno.com', 'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', 'PATH_INFO': '/blog/tags/support', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
 /usr/lib/python2.4/site-packages/yaro-0.5-py2.4.egg/yaro.py in __call__(self=<yaro.Yaro object>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/lukearno.com', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_HOST': 'lukearno.com', 'HTTP_USER_AGENT': 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', 'PATH_INFO': '/blog/tags/support', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
  281             req = Request(environ, start_response, self.extra_props)
  282             environ['yaro.request'] = req 
  283         body = self.app(req)
  284         if body is None:
  285             body = req.res.body
body undefined, self = <yaro.Yaro object>, self.app = <function tag_feed>, req = <yaro.Request object>
 /home/luke/projects/working/blogme/blogme/blog.py in tag_feed(req=<yaro.Request object>)
   45 def tag_feed(req):
   46     tags = req.environ['selector.vars']['tags'].split('+')
   47     entries = Entry.list_recent(cfg.feedsize, tags=tags)
   48     return render('blogme.templates.feedpage', req, entries=entries)
   49 
entries undefined, global Entry = <class 'blogme.model.Entry'>, Entry.list_recent = <function list_recent>, global cfg = <module 'blogme.cfg' from '/home/luke/projects/working/blogme/blogme/cfg.pyc'>, cfg.feedsize = 10, tags = ['support']
 /home/luke/projects/working/blogme/blogme/model.py in list_recent(number=10, tags=['support'])
  167                 """ % ", ".join(["'%s'" % t for t in escape(*tags)])
  168             
  169         cursor = get_cursor()
  170         try:
  171             cursor.execute(debug("""
cursor undefined, global get_cursor = <function get_cursor>
 /home/luke/projects/working/blogme/blogme/model.py in get_cursor()
    9 
   10 def get_cursor():
   11     return connect(**cfg.db_creds).cursor()
   12 
   13 class BlogError(Exception): pass
global connect = <function Connect>, global cfg = <module 'blogme.cfg' from '/home/luke/projects/working/blogme/blogme/cfg.pyc'>, cfg.db_creds = {'db': 'blogme', 'host': 'localhost', 'passwd': 'meblog', 'user': 'blogme'}, ).cursor undefined
 /usr/lib/python2.4/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'blogme', 'host': 'localhost', 'passwd': 'meblog', 'user': 'blogme'})
   64     """Factory function for connections.Connection."""
   65     from connections import Connection
   66     return Connection(*args, **kwargs)
   67 
   68 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'blogme', 'host': 'localhost', 'passwd': 'meblog', 'user': 'blogme'}
 /usr/lib/python2.4/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 85fad0c>, *args=(), **kwargs={'db': 'blogme', 'host': 'localhost', 'passwd': 'meblog', 'user': 'blogme'})
  132             del kwargs2['use_unicode']
  133                 
  134         super(Connection, self).__init__(*args, **kwargs2)
  135 
  136         self.charset = self.character_set_name().split('_')[0]
builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 85fad0c>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 85fad0c>>, args = (), kwargs2 = {'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': 'blogme', 'host': 'localhost', 'passwd': 'meblog', 'user': 'blogme'}

OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)")
      args = (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)")