| InternalError | Python 2.4.2: /usr/bin/python Thu May 17 01:44:33 2012 |
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/localhost/htdocs/phospho3d/index.py |
| 7 # (az) |
| 8 |
| 9 import os, cgi, string, functions |
| 10 import cgitb; cgitb.enable() |
| 11 from functions import * |
| os = <module 'os' from '/usr/lib/python2.4/os.pyc'>, cgi = <module 'cgi' from '/usr/lib/python2.4/cgi.pyc'>, string = <module 'string' from '/usr/lib/python2.4/string.pyc'>, functions undefined |
| /var/www/localhost/htdocs/p3d/functions.py |
| 12 from pg import DB |
| 13 |
| 14 connection = pg.DB(dbname='p3d', user='web') |
| 15 |
| 16 def browse_db(offset): |
| connection undefined, pg = None, pg.DB undefined, dbname undefined, user undefined |
| /usr/lib/python2.4/site-packages/pg.py in __init__(self=<pg.DB instance>, *args=(), **kw={'dbname': 'p3d', 'user': 'web'}) |
| 48 |
| 49 def __init__(self, *args, **kw): |
| 50 self.db = connect(*args, **kw) |
| 51 |
| 52 # Create convenience methods, in a way that is still overridable |
| self = <pg.DB instance>, self.db undefined, global connect = <built-in function connect>, args = (), kw = {'dbname': 'p3d', 'user': 'web'} |
InternalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
args =
('could not connect to server: No such file or dir...ions on Unix domain socket "/tmp/.s.PGSQL.5432"?\n',)