Project

General

Profile

Actions

action #123523

closed

[tools] osc-plugin-qam throws traceback on Tumbleweed size:M

Added by osukup over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2023-01-23
Due date:
2023-03-03
% Done:

0%

Estimated time:

Description

as reported here: https://suse.slack.com/archives/C02CUAYSFDL/p1674466273700499

it looks like new osc-1.0.0 has change in do_*something* API and it breaks osc-plugin-qam:

/usr/lib/python3.10/site-packages/osc/cmdln.py:267: FutureWarning: do_qam() handler has deprecated signature. It takes the following args: ['subcmd', 'opts', 'args', 'kwargs'], while it should be taking ['subcmd', 'opts'] and handling positional arguments explicitly via @cmdln.option.
  warnings.warn(
Traceback (most recent call last):
  File "/usr/bin/osc", line 33, in <module>
    sys.exit(load_entry_point('osc==1.0.0b3', 'console_scripts', 'osc')())
  File "/usr/lib/python3.10/site-packages/osc/babysitter.py", line 208, in main
    sys.exit(run(commandline.Osc()))
  File "/usr/lib/python3.10/site-packages/osc/babysitter.py", line 56, in run
    return prg.main(argv)
  File "/usr/lib/python3.10/site-packages/osc/cmdln.py", line 274, in main
    cmd(self.options.command, self.options, *self.args)
  File "/usr/lib/osc-plugins/qam.py", line 648, in do_qam
    interp.optparser = cmdln.SubCmdOptionParser()
AttributeError: module 'osc.cmdln' has no attribute 'SubCmdOptionParser'
error: Assign failed: Command '['osc', '-A', 'https://api.suse.de', 'qam', 'assign', '288537']' returned non-zero exit status 1.

Suggestions

Actions

Also available in: Atom PDF