FS#68999 - [xonsh] not compatible with python 3.9

Attached to Project: Community Packages
Opened by Alexander Kellett (zinf) - Wednesday, 16 December 2020, 06:53 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 04 May 2021, 06:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Jerome Leclanche (Adys)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Many normal .xsh scripts no longer function after upgrading archlinux due to the python version having been updated.

Steps to reproduce:
Run one of the scripts. Let me know if you need a reproduction for unit testing or something. For now I hope this is enough information.

Related PR in the xonsh repo:
https://github.com/xonsh/xonsh/pull/3588
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 04 May 2021, 06:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  xonsh is on 0.9.27
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 22 December 2020, 16:49 GMT
I'm unable to reproduce this.

echo 'print("Hello Xonsh")' > hello.xsh; xonsh hello.xsh
Outputs: "Hello Xonsh".

Could you please post a step-by-step recipe for how to reproduce the issue?
Comment by Alexander Kellett (zinf) - Tuesday, 22 December 2020, 18:53 GMT
Test

/usr/bin/xonsh -c "x[y[0]]"

Expected backtrace ending in

NameError: name 'x' is not defined

Current fail backtrace ending in

File "/usr/lib/python3.9/site-packages/xonsh/parsers/base.py", line 2215, in apply_trailers
assert False
AssertionError
Comment by Techcable (Techcable) - Monday, 22 March 2021, 18:27 GMT
This should be fixed in newer versions of xonsh. This PR was recently merged https://github.com/xonsh/xonsh/pull/3588
I have locally updated to 0.9.27 and it is fixed :)

Loading...