[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
*** 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
*** 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
*** 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
*** 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>
***
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>
*** 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.
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?
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
05-25-2011, 06:11 PM
Mike McLean
installing koji on F15.
On 05/25/2011 01:07 PM, Bryce wrote:
> 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?
The call is only used for debug output. As long as you don't have that
enabled, removing the import line won't cause a problem. If you do need
debug output, you can set LogLevel to something like "DEBUG db:INFO"
which will enable debugging everywhere except the db module. Or, since
you're already altering the code, you could just replace
_quoteparams(operation,parameters) with something less optimal, e.g.
operation % parameters
"%r %r" % (operation,parameters)
etc...
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys