I'd a quick go at installing koji on an F15 box this afternoon but hit
the following.
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] mod_python
(pid=18341, interpreter='build1', phase='PythonHandler',
handler='kojixmlrpc'): Application error
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] ServerName:
'build1'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112]
DocumentRoot: '/var/www/html'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] URI:
'/kojihub/ssllogin'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] Location: None
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] Directory:
'/usr/share/koji-hub/'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] Filename:
'/usr/share/koji-hub/XMLRPC'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] PathInfo:
'/ssllogin'
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] Traceback
(most recent call last):
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 1537,
in HandlerDispatch\n default=default_handler, arg=req,
silent=hlist.silent)
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 1202,
in _process_target\n module = import_module(module_name, path=path)
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 296,
in import_module\n log, import_path)
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 680,
in import_module\n execfile(file, module.__dict__)
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/share/koji-hub/kojixmlrpc.py", line 35, in <module>\n import
koji.db
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] File
"/usr/lib/python2.7/site-packages/koji/db.py", line 29, in <module>\n
from pgdb import _quoteparams
[Wed May 25 16:53:00 2011] [error] [client 192.168.122.112] ImportError:
cannot import name _quoteparams
/usr/lib64/python2.7/site-packages/pgdb.py:
def _quoteparams(self, string, params):
"""Quote parameters.
This function works for both mappings and sequences.
"""
if isinstance(params, dict):
params = _quotedict(params)
params.quote = self._quote
else:
params = tuple(map(self._quote, params))
return string % params
/usr/lib/python2.7/site-packages/koji/db.py:
import pgdb
...
from pgdb import _quoteparams
...
if debug:
self.logger.debug(_quoteparams(operation,parameters))
I got around this by removing the "from pgdb import _quoteparams" line
since the whole module is already imported. Would that be a correct
action or is there some nuance that I'm overlooking that will bite me later?