On Fri, Mar 21, 2003 at 04:32:21PM +0100, Axel Thimm wrote: > 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): <snip> > 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? OK, here's the story. I wrote the keepalive code on RHL 7.3 and tested on phoebe (8.1 beta). Both of those have python 2.2.2. It did not occur to me that 8.0 might have something older than the versions before and after it :( I'll take a look at it tonight, but I don't know how tough it's gonna be to fix. It looks like they've changed a fair amount of stuff in httplib from 2.2.1 to 2.2.2. If you REALLY need to, you can disable the keepalive code by renaming /usr/lib/yum/keepalive.pyc to something else, like /usr/lib/yum/keepalive.pyc.disabled. If it can't be imported correctly, it simply won't be used. I included this (slightly ugly) hack specifically for problems like this. Ultimately, if 2.2.1 is just way too different, it might be best to just disable keepalive for RHL 8.0, but I'll try to avoid that. -Michael -- Michael Stenner Office Phone: 919-660-2513 Duke University, Dept. of Physics mstenner@xxxxxxxxxxxx Box 90305, Durham N.C. 27708-0305