Project

General

Profile

action #123523

Updated by jbaier_cz almost 2 years ago

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 

 * Look at maybe-related PR in osc: https://github.com/openSUSE/osc/pull/991

Back