Package: yum
Version: 3.2.12-1.2
Severity: important

Hi,

While doing this:

yum -c /var/lib/dtc-xen/yum/yum.conf -y install basesystem centos-release yum \
wget which yum-basearchonly nano rsyslog

yum crashes with the python traceback as bellow.

After some search on google, it seems it's because yum is currently using
python 2.5 in Lenny as in fact, it should be using 2.4 to work correctly. So it
is likely this bug is there since the python transition to 2.5.

So, either have yum run against python 2.4 (by editing /usr/bin/yum to point to
the python 2.4 binary) (if it's still in lenny), and set the dependencies
accordingly so python2.4 is pulled when we install yum, or fix the bugs within
yum itself so that it is compat with python 2.5.

Here is the traceback:

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 236, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 91, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
    disabled_plugins=self.optparser._splitArg(opts.disableplugins))
  File "/var/lib/python-support/python2.5/yum/__init__.py", line 156, in 
_getConfig
    startupconf = config.readStartupConfig(fn, root)
  File "/var/lib/python-support/python2.5/yum/config.py", line 697, in 
readStartupConfig
    confpp_obj = ConfigPreProcessor(configfile)
  File "/var/lib/python-support/python2.5/yum/parser.py", line 83, in __init__o
    fo = self._pushfile( url ) 1.0.5-10      Light-weight toolkit for XML proce
  File "/var/lib/python-support/python2.5/yum/parser.py", line 176, in _pushfile
    fo = urlgrabber.grabber.urlopen(absurl)  Python interface to the GPGME GnuP
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 605, in 
urlopen
    return default_grabber.urlopen(url, **kwargs)on interface to SQLite 2
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 884, in 
urlopen
    return self._retry(opts, retryfunc, url) automated rebuilding support for P
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 845, in 
_retry
    r = apply(func, (opts,) + args, {})1     Red Hat package manager
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 883, in 
retryfunc
    return URLGrabberFileObject(url, filename=None, opts=opts)
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1001, in 
__init__
    self._do_open()kages.
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1066, in 
_do_open
    opener = self._get_opener()
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1057, in 
_get_opener
    self._opener = CachedOpenerDirector(ssl_factory, *handlers)
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1312, in 
CachedOpenerDirector
    opener = ssl_factory.create_opener(*handlers)
  File "/var/lib/python-support/python2.5/urlgrabber/sslfactory.py", line 63, 
in create_opener
    return m2urllib2.build_opener(self.ssl_context, *handlers)
  File "/var/lib/python-support/python2.5/M2Crypto/m2urllib2.py", line 113, in 
build_opener
    if inspect.isclass(check):
NameError: global name 'inspect' is not defined



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to