[Yum] yum for rpm 4.2 on RH80 (was: yum: errors and `unsolicited' updates.)

Axel Thimm Axel.Thimm at physik.fu-berlin.de
Fri Mar 21 15:32:21 UTC 2003


[moved this to the yum list]

On Fri, Mar 21, 2003 at 09:29:38AM -0500, seth vidal wrote:
> On Fri, 2003-03-21 at 09:15, Axel Thimm wrote:
> > On Fri, Mar 21, 2003 at 08:32:52AM -0500, seth vidal wrote:
> > > > Is this an rpm 4.1 vs rpm 4.2 thing, or something else? Would rebuilding yum
> > > > from src.rpm help?
> > > no - rebuilding won't help - two different branches.
> > Will http://www.linux.duke.edu/projects/yum/download/daily/2.0/yum-20030307.tar.gz
> > do?
> Is that the latest one?
> If so then yah - or just grab the rpm.

O.K., I have now the following setup:

o Red Hat 8.0
o rpm-4.2-0.70 (including all needed updates, elfutils etc.)
o a working apt for rpm 4.2

Up to this point everything works fine. I have managed to build and maintain
rh80 rpms and repositories with rpm 4.2. In fact, it works better than with
rpm < 4.2 (no more spurious hangs).

If I try to build the latest yum sources, or use the built rpm for phoebe,
http://linux.duke.edu/projects/yum/download/2.0/daily/yum-phoebe-1.8-20030307.1.noarch.rpm
I get the following:

Gathering package information from servers
Getting headers from: Phoebe Beta 3 - 8.0.94
Traceback (most recent call last):
  File "/usr/bin/yum", line 45, in ?
    yummain.main(sys.argv[1:])
  File "yummain.py", line 158, in main
  File "clientStuff.py", line 675, in get_package_info_from_servers
  File "clientStuff.py", line 301, in urlgrab
  File "/usr/lib/python2.2/urllib2.py", line 138, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.2/urllib2.py", line 322, in open
    '_open', req)
  File "/usr/lib/python2.2/urllib2.py", line 301, in _call_chain
    result = func(*args)
  File "keepalive.py", line 153, in http_open
  File "keepalive.py", line 134, in do_open
  File "/usr/lib/python2.2/httplib.py", line 593, in getresponse
    response = self.response_class(self.sock)
  File "keepalive.py", line 177, in __init__
TypeError: __init__() takes at most 3 arguments (4 given)

This is due to a call to

	httplib.HTTPResponse.__init__(self, sock, debuglevel, strict),

while python-2.2.1-17 has (in /usr/lib/python2.2/httplib.py):

	def __init__(self, sock, debuglevel=0):

Does yum 1.8/2.0 require a python upgrade?
-- 
Axel.Thimm at physik.fu-berlin.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20030321/ad54f42e/attachment-0001.pgp 


More information about the Yum mailing list