I recently came across an issue with RedHat's yum where I couldn't do anything with it. The error was,
[root@desktop ~]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1522, in _progress_update
if self._over_max_size(cur=self._amount_read-self._reget_length):
File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1541, in _over_max_size
if cur > max_size + max_size*.10:
TypeError: can't multiply sequence by non-int of type 'float'
Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1522, in _progress_update
if self._over_max_size(cur=self._amount_read-self._reget_length):
File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1541, in _over_max_size
if cur > max_size + max_size*.10:
TypeError: can't multiply sequence by non-int of type 'float'
Exiting on user cancel
[root@desktop ~]#
This was caused by having both the python module urlgrabber from easy_install and the python-urlgrabber RPM installed.
To fix it, I did:
[root@desktop ~]# rm -rf /usr/lib/python2.7/site-packages/urlgrabber*
[root@desktop ~]# rm -f /usr/bin/urlgrabber
[root@desktop ~]# rpm -ivh --force http://hany.sk/mirror/fedora/releases/16/Everything/x86_64/os/Packages/python-urlgrabber-3.9.1-10.fc15.noarch.rpm