#1431 koji-builder-1.17.0 not compatible with python 2.6
Closed: Fixed 4 years ago by mikem. Opened 4 years ago by jcpunk.

When running kojid on a python2.6 system you receive the following message:

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/koji/daemon.py", line 1295, in runTask
response = (handler.run(),)
File "/usr/lib/python2.6/site-packages/koji/tasks.py", line 311, in run
return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
File "/usr/lib/python2.6/site-packages/koji/util.py", line 263, in call_with_argcheck
return func(args, *kwargs)
File "/usr/sbin/kojid", line 1302, in handler
broot.init()
File "/usr/sbin/kojid", line 544, in init
self.session.host.setBuildRootList(self.id,self.getPackageList())
File "/usr/sbin/kojid", line 633, in getPackageList
self.markExternalRPMs(ret)
File "/usr/sbin/kojid", line 764, in markExternalRPMs
with GzipFile(fileobj=fo, mode='r') as fo2:
AttributeError: GzipFile instance has no attribute 'exit'

Alas, python2.6 does not have the fix that permits using GzipFile as a 'with' object.

https://pagure.io/koji/blob/master/f/builder/kojid#_768


Metadata Update from @tkopecek:
- Issue set to the milestone: 1.18
- Issue tagged with: bug, easyfix

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1432 Merged 4 years ago