Bug 54386 - Ошибка при выполнении любой команды в оболочке targetcli
Summary: Ошибка при выполнении любой команды в оболочке targetcli
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: targetcli (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton Vyatkin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-20 16:26 MSK by Alexander Makeenkov
Modified: 2025-05-22 16:53 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.