Openmoko Bug #2207: trac sometimes throws " from pyPgSQL import PgSQL trac sometimes throws "ImportError: No module named pyPgSQL"
Openmoko Public Trac
bugs at docs.openmoko.org
Mon Jan 12 20:46:15 CET 2009
#2207: trac sometimes throws " from pyPgSQL import PgSQL
trac sometimes throws "ImportError: No module named pyPgSQL"
---------------------+------------------------------------------------------
Reporter: lindi | Owner: openmoko-devel
Type: defect | Status: new
Priority: normal | Milestone:
Component: unknown | Version:
Severity: normal | Keywords:
Haspatch: 0 | Blockedby:
Estimated: | Patchreview:
Blocking: | Reproducible:
---------------------+------------------------------------------------------
While trying add a comment to an existing bug I got the following error
message when I hit preview:
{{{
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/api.py", line 367, in send_error
'text/html')
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/chrome.py", line 688, in
render_template
data = self.populate_data(req, data)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/chrome.py", line 596, in
populate_data
d['chrome'].update(req.chrome)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/api.py", line 194, in
__getattr__
value = self.callbacks[name](self)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/chrome.py", line 464, in
prepare_request
for category, name, text in contributor.get_navigation_items(req):
File "build/bdist.linux-i686/egg/tractags/web_ui.py", line 60, in
get_navigation_items
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/api.py", line 194, in
__getattr__
value = self.callbacks[name](self)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/main.py", line 261, in _get_perm
return PermissionCache(self.env, self.authenticate(req))
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/main.py", line 132, in
authenticate
authname = authenticator.authenticate(req)
File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 408, in wrap
File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 419, in
authenticate
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/auth.py", line 70, in
authenticate
authname = self._get_name_for_cookie(req, req.incookie['trac_auth'])
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/web/auth.py", line 184, in
_get_name_for_cookie
db = self.env.get_db_cnx()
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/env.py", line 264, in get_db_cnx
return DatabaseManager(self).get_connection()
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/db/api.py", line 76, in
get_connection
return self._cnx_pool.get_cnx(self.timeout or None)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/db/pool.py", line 174, in get_cnx
return _backend.get_cnx(self._connector, self._kwargs, timeout)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/db/pool.py", line 107, in get_cnx
cnx = connector.get_connection(**kwargs)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/db/postgres_backend.py", line 46, in
get_connection
cnx = PostgreSQLConnection(path, user, password, host, port, params)
File "/usr/local/lib/python2.4/site-
packages/Trac-0.11.2.1-py2.4.egg/trac/db/postgres_backend.py", line 118,
in __init__
from pyPgSQL import PgSQL
ImportError: No module named pyPgSQL
}}}
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2207>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the devel
mailing list