[Yum] yum-2.0.1 -- problem with httplib.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 18, 2003 at 08:14:41AM -0500, David Relson wrote:
> I've just installed yum-2.0.1-1mdk.noarch.rpm on my Mandrake 9.2 system.
>  When I run it, I get the following:
> 
> [root@osage tmp]# yum list updates
> Gathering header information file(s) from server(s)
> Server: Mandrake 9.2 base
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 60, in ?
>     yummain.main(sys.argv[1:])
>   File "yummain.py", line 183, in main
>   File "clientStuff.py", line 734, in get_package_info_from_servers
>   File "clientStuff.py", line 1103, in grab
>   File "urlgrabber.py", line 228, in retrygrab
>   File "urlgrabber.py", line 306, in urlgrab
>   File "/usr/lib/python2.3/urllib2.py", line 136, in urlopen
>     return _opener.open(url, data)
>   File "/usr/lib/python2.3/urllib2.py", line 333, in open
>     '_open', req)
>   File "/usr/lib/python2.3/urllib2.py", line 313, in _call_chain
>     result = func(*args)
>   File "keepalive.py", line 162, in http_open
>   File "keepalive.py", line 143, in do_open
>   File "/usr/lib/python2.3/httplib.py", line 777, in getresponse
>     method=self._method)
> TypeError: __init__() got an unexpected keyword argument 'method'
> 
> ### FWIW, httplib.py is  from package python-2.3-3mdk ###
> 
> [root@osage tmp]# rpm -qf /usr/lib/python2.3/httplib.py
> python-2.3-3mdk
> 
> Any suggestions on what I need to change to move forward?

A quick and dirty solution that should work is to simply remove (or
rename) keepalive.py and keepalive.pyc (and .pyo if it's there).  We
haven't had a chance to play with python 2.3 and some things changed
that seem to make the keepalive module not work.  They're probably
quite minor, and I think other people have run into them.  There may
even be a patch in bugzilla.
					-Michael
-- 
  Michael Stenner                       Office Phone: 919-660-2513
  Duke University, Dept. of Physics       mstenner@xxxxxxxxxxxx
  Box 90305, Durham N.C. 27708-0305

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux