#1310 failure importing rpm signatures under python3
Closed: Fixed 6 months ago by mikem. Opened 6 months ago by mikem.

Importing signatures fails

$ lkoji import-sig *.rpm
Importing signature [key 4c8da725] from fake-1.1-29.noarch.rpm...
Traceback (most recent call last):
  File "/home/mike/Devel/koji/koji/cli2/lkoji", line 310, in <module>
    rv = locals()[command].__call__(options, session, args)
  File "/home/mike/Devel/koji/koji/cli/koji_cli/commands.py", line 1474, in handle_import_sig
    session.addRPMSig(rinfo['id'], base64.encodestring(sighdr))
  File "/home/mike/Devel/koji/koji/koji/__init__.py", line 2055, in __call__
    return self.__func(self.__name, args, opts)
  File "/home/mike/Devel/koji/koji/koji/__init__.py", line 2546, in _callMethod
    raise err
xmlrpclib.Fault: <Fault 1: "<class 'TypeError'>: expected bytes-like object, not str">

hub-side, we have:

Traceback (most recent call last):
  File "/usr/share/koji-hub/kojixmlrpc.py", line 235, in _wrap_handler
    response = handler(environ)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 278, in handle_rpc
    return self._dispatch(method, params)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 315, in _dispatch
    ret = koji.util.call_with_argcheck(func, params, opts)
  File "/usr/lib/python3.6/site-packages/koji/util.py", line 226, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/share/koji-hub/kojihub.py", line 9207, in downloadTaskOutput
    f.seek(offset, 2)
io.UnsupportedOperation: can't do nonzero end-relative seeks

Login to comment on this ticket.

Metadata