Bug 54386

Summary: Ошибка при выполнении любой команды в оболочке targetcli
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: targetcliAssignee: Anton Vyatkin <toni>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: shaba, snejok, toni
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2025-05-20 16:26:18 MSK
- Версия пакета:
3.0.1-alt1

- Шаги воспроизведения:

1. Установить пакет и запустить утилиту:
# apt-get install targetcli
# targetcli

2. В командной оболочке выполнить любую команду, например:
/> help
/> cd

- Получаемый результат:

Ошибка при выполнении любой команды:

Traceback (most recent call last):
  File "/usr/bin/targetcli", line 9, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/site-packages/targetcli/targetcli_shell.py", line 313, in main
    shell.run_interactive()
  File "/usr/lib/python3/site-packages/configshell/shell.py", line 905, in run_interactive
    self._cli_loop()
  File "/usr/lib/python3/site-packages/configshell/shell.py", line 734, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python3/site-packages/configshell/shell.py", line 848, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python3/site-packages/configshell/shell.py", line 823, in _execute_command
    result = target.execute_command(command, pparams, kparams)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/configshell/node.py", line 1405, in execute_command
    self.assert_params(method, pparams, kparams)
  File "/usr/lib/python3/site-packages/configshell/node.py", line 1420, in assert_params
    spec = inspect.getargspec(method)
           ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

После этого происходит выход обратно в bash.
Comment 1 Anton Vyatkin 2025-05-22 16:53:27 MSK
fix with new python3-module-configshell-fb.