FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 05-25-2011, 05:07 PM
Bryce
 
Default installing koji on F15.

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
*** 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.



******* """

******* 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,parameter s))



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
 
Old 05-25-2011, 06:11 PM
Mike McLean
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org