<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54386</bug_id>
          
          <creation_ts>2025-05-20 16:26:18 +0300</creation_ts>
          <short_desc>Ошибка при выполнении любой команды в оболочке targetcli</short_desc>
          <delta_ts>2025-05-22 16:53:27 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>targetcli</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Anton Vyatkin">toni</assigned_to>
          <cc>shaba</cc>
    
    <cc>snejok</cc>
    
    <cc>toni</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>265222</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-05-20 16:26:18 +0300</bug_when>
    <thetext>- Версия пакета:
3.0.1-alt1

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

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

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

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

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

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

После этого происходит выход обратно в bash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265366</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Vyatkin">toni</who>
    <bug_when>2025-05-22 16:53:27 +0300</bug_when>
    <thetext>fix with new python3-module-configshell-fb.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>