Package: xonsh
Version: 0.18.3+dfsg-1
Severity: important
X-Debbugs-Cc: r...@debian.org

xonsh has regressed since Python 3.12.7 hit the archives. It became
an annoyance after it has reached Debian Testing now. :-(
I should have reported it earlier.

It fails with:

```
  xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
Exception in {'cls': 'ProcProxy', 'name': None, 'func': 
<xonsh.xontribs.XontribAlias object at 0x7fc636f72360>, 'alias': 'xontrib', 
'pid': 14189}
TypeError: ArgParser._parse_known_args() takes 3 positional arguments but 4 
were given
Exception in {'cls': 'ProcProxy', 'name': None, 'func': 
<xonsh.xontribs.XontribAlias object at 0x7fc636f72360>, 'alias': 'xontrib', 
'pid': 14189}
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = 
<filename>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xonsh/procs/proxies.py", line 784, in 
wait
    r = run_with_partial_args(
        ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xonsh/cli_utils.py", line 381, in 
run_with_partial_args
    return func(**kwargs)
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xonsh/cli_utils.py", line 646, in 
__call__
    result = dispatch(
             ^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xonsh/cli_utils.py", line 405, in 
dispatch
    parsed = parser.parse_args(args)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/argparse.py", line 1918, in parse_args
    args, argv = self.parse_known_args(args, namespace)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/argparse.py", line 1928, in parse_known_args
    return self._parse_known_args2(args, namespace, intermixed=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/argparse.py", line 1957, in _parse_known_args2
    namespace, args = self._parse_known_args(args, namespace, intermixed)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ArgParser._parse_known_args() takes 3 positional arguments but 4 
were given
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = 
<filename>
Traceback (most recent call last):
  File "/home/rrs/.xonshrc", line 82, in <module>
    abbrevs['_gitdiff'] = "git diff --color=always | less"
    
NameError: name 'abbrevs' is not defined
error running xonsh run control file '/home/rrs/.xonshrc': name 'abbrevs' is 
not defined
```
Once I downgrade back to 3.12.6, things are behaving normal.

I reported this upstream as well but I believe it is an issue with Python from 
Debian.

* https://github.com/xonsh/xonsh/issues/5724


Note: I believe if you rebuild xonsh you may be able to reproduce the issue in 
the testsuite

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 
'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.6-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xonsh depends on:
ii  python3                              3.12.6-1
ii  python3-ply [python3-ply-yacc-3.10]  3.11-7

Versions of packages xonsh recommends:
ii  libjs-bootstrap4        4.6.1+dfsg1-4
ii  python3-prompt-toolkit  3.0.48-1
ii  python3-pygments        2.18.0+dfsg-1
ii  python3-setproctitle    1.3.3-1+b4

Versions of packages xonsh suggests:
ii  python3-pyperclip  1.8.2-2
ii  xonsh-doc          0.18.3+dfsg-1

-- no debconf information

Reply via email to