Package: kamcli
Version: 2.0.0-2
Severity: serious
Tags: fixed-upstream trixie forky sid
[ Used release tags to mark it as affecting stable/testing/unstable,
if that's inappropriate, let me know and I can fix, or feel free to
correct. ]
Hi!
When trying out this package in Debian trixie, I noticed it emits a
back trace, such as:
,---
$ kamcli uptime
Traceback (most recent call last):
File "/usr/bin/kamcli", line 33, in <module>
sys.exit(load_entry_point('kamcli==2.0.0', 'console_scripts', 'kamcli')())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 92, in
new_func
return ctx.invoke(f, obj, *args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/kamcli/commands/cmd_uptime.py", line 17,
in cli
command_ctl(ctx, 'core.uptime', [])
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/kamcli/iorpc.py", line 387, in
command_ctl
if ctx.gconfig.get('jsonrpc', 'transport') == 'socket':
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/kamcli/cli.py", line 93, in gconfig
self._gconfig = read_global_config(self.gconfig_paths)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/kamcli/cli.py", line 12, in
read_global_config
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did
you mean: 'RawConfigParser'?
`---
The same when trying to use other commands such as "dispatch", etc.
It appears this has been fixed upstream with
<https://github.com/kamailio/kamcli/commit/0b5404a7a1e5c8df7881b71da3bed0d099ad72ec>
(thanks to Richard Fuchs for digging that up).
It would be great to fix this also in Debian trixie, as otherwise I'm not
sure how it can be used there (although perhaps there's a
workaround?).
Thanks,
Guillem