FS#26712 - [urlgrabber] (yum) TypeError: can't multiply sequence by non-int of type 'float'
Attached to Project:
Community Packages
Opened by Christopher Schwaab (lpjhjdh) - Tuesday, 01 November 2011, 16:23 GMT
Last edited by Chris Brannon (cmb) - Friday, 18 November 2011, 15:43 GMT
Opened by Christopher Schwaab (lpjhjdh) - Tuesday, 01 November 2011, 16:23 GMT
Last edited by Chris Brannon (cmb) - Friday, 18 November 2011, 15:43 GMT
|
Details
Description:
When running urlgrabber it fails with TypeError: can't multiply sequence by non-int of type 'float'. This bug is also recognized by gentoo. See: https://bugs.gentoo.org/346753?id=346753 http://patch-tracker.debian.org/package/urlgrabber/3.9.1-4 Additional info: * package version(s) 3.9.1-2 I have (simply) adapted the patch at http://patch-tracker.debian.org/patch/series/view/urlgrabber/3.9.1-4/grabber_fix.diff to work with the community urlgrabber package. The attached PKGBUILD with the patch are tested as working on my machine "3.1.0-2-ARCH x86_64" running testing and community-testing. |
This task depends upon
Closed by Chris Brannon (cmb)
Friday, 18 November 2011, 15:43 GMT
Reason for closing: Not a bug
Additional comments about closing: Thanks for the report!
Friday, 18 November 2011, 15:43 GMT
Reason for closing: Not a bug
Additional comments about closing: Thanks for the report!
That patch looks good, but I'd like to have a good handle on
the problem before I apply the solution.
Thanks,
-- Chris
$ cat > myyum.conf <<_EOF
[main]
cachedir=/var/cache/yum
logfile=/var/log/yum.log
reposdir=
keepcache=0
debuglevel=2
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
obsoletes=1
gpgcheck=0
plugins=1
retries=4
timeout=60
metadata_expire=1800
[core-13]
name=Fedora Core $releasever - $basearch
failovermethod=priority
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=fedora-13&arch=i386
enabled=1
metadata_expire=7d
[updates-13]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=updates-released-f13&arch=i386
enabled=1
metadata_expire=7d
_EOF
$ sudo yum -y -c myyum.conf --installroot=`pwd`/fail install binutils
Since this seems to be the only failure I would avoid yum but unfortunately it's required for some work I am doing.
Thanks.
- Chris
Looking through the yum source it looks like after parsing some xml they don't bother to convert the "size" value they pass into urlgrabber.
For anyone curious:
Under repoMDObject.py:RepoMD.parse(self, elem): line 69 'self.size = child.text'
which propagates to yumRepo.py:YumRepository._retrieveMD(...): line 1611 'self._getFile(..., size=thisdata.size)'
seems it should be 'size=int(thisdata.size)'
I'll make a patch for the AUR package.
Thanks.
Thanks all.