Bug 1899842
Summary: | xonsh fails to build with Python 3.10: compile() TypeError: required field "lineno" missing from alias | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | xonsh | Assignee: | Carmen Bianca Bakker <carmen> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | carmen, jdulaney, lewk, mhroncok, python-sig, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | xonsh-0.10.1-1.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-08-04 12:58:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1934672 | ||
Bug Blocks: | 1890881, 1927309, 1927313, 1987985 |
Description
Tomáš Hrnčiar
2020-11-20 08:17:29 UTC
Hello, is there any update on this? It blocks testing of 2 other packages (python-virtualenv, asv) with Python 3.10. Thank you. xonsh tests of virtualenv are optional. I recommend disabling them for Python 3.10, as xonsh is likely to not be fixed in time for the actual bootstrap, based on my previous experience. Thank you for the hint Miro. With disabled failing tests xonsh, python-virtualenv and asv are building just fine. Hi sorry. I just finished getting my degree this week. This package has been incredibly difficult to maintain as the Python versions tally up. Tests always break, and upstream appears to be a few Python releases behind. I suspect that the upstream maintainer runs a Debian-like stable distribution. I'm going to try to figure out some upstream patches. In the meantime it's very acceptable that this package should not block anything. If the package continues being un-maintainable I might retire it. This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. *** Bug 1969202 has been marked as a duplicate of this bug. *** The current failure is: + python -m xonsh run-tests.xsh test Traceback (most recent call last): File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/__main__.py", line 3, in <module> main() File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/main.py", line 423, in main _failback_to_other_shells(args, err) File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/main.py", line 370, in _failback_to_other_shells raise err File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/main.py", line 421, in main sys.exit(main_xonsh(args)) File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/main.py", line 475, in main_xonsh run_script_with_cache( File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/codecache.py", line 160, in run_script_with_cache ccode = compile_code(filename, code, execer, glb, loc, mode) File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/codecache.py", line 119, in compile_code ccode = execer.compile(code, glbs=glb, locs=loc, mode=mode, filename=filename) File "/builddir/build/BUILDROOT/xonsh-0.9.26-3.fc35.x86_64/usr/lib/python3.10/site-packages/xonsh/execer.py", line 138, in compile code = compile(tree, filename, mode) TypeError: required field "lineno" missing from alias error: Bad exit status from /var/tmp/rpm-tmp.qDV9Tp (%check) An update seems to fix this. Will send PR if I don't encounter more trouble. FEDORA-2021-80a89be54f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-80a89be54f FEDORA-2021-80a89be54f has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |