Building packages with mock for EL6/EL7 on Fedora 30 failing - urlgrabber-ext-down

fedora-30
#1

I’ve suddenly started having problems building RPMs for EL6 on Fedora 30. If I have python2-urlgrabber installed, every yum operation in the mock chroot complains that /usr/libexec/urlgrabber-ext-down isn’t installed. If I have python3-urlgrabber installed, I get this:

   Downloading packages:
Traceback (most recent call last):
 File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
   main()
 File "/usr/libexec/urlgrabber-ext-down", line 52, in main
   for k in line.split(' '):
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
 File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
   main()
 File "/usr/libexec/urlgrabber-ext-down", line 52, in main
   for k in line.split(' '):
TypeError: a bytes-like object is required, not 'str'

Has anyone else seen this and/or know of a solution?

#2

Hello @fozz—welcome to the community!

Fedora 30 saw quite a large removal of Python 2 packages as we move towards using Python 3 as default: https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

This could be a fall out from there. Does the error come up when building for other targets (fedora-rawhide-x86_64)? Could you post the complete log, and the versions of mock and related packages please?