Bug 2356182
Summary: | python-libcst fails to build with Python 3.14: Exception: Logic error, unexpected top level type! when importing libcst.codegen.gen_matcher_classes | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | python-libcst | Assignee: | Davide Cavalca <davide> |
Status: | NEW --- | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | davide, ksurma, mhroncok, michel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | --- | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | |||
Bug Blocks: | 2322407 |
Description
Karolina Surma
2025-03-31 10:04:23 UTC
$ python3
Python 3.14.0b2 (main, May 26 2025, 00:00:00) [GCC 15.1.1 20250521 (Red Hat 15.1.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libcst.codegen.gen_matcher_classes
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import libcst.codegen.gen_matcher_classes
File "/usr/lib64/python3.14/site-packages/libcst/codegen/gen_matcher_classes.py", line 521, in <module>
node_fields = list(_get_fields(node))
File "/usr/lib64/python3.14/site-packages/libcst/codegen/gen_matcher_classes.py", line 425, in _get_fields
fieldtype, aliases = _get_clean_type_and_aliases(field.type)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib64/python3.14/site-packages/libcst/codegen/gen_matcher_classes.py", line 400, in _get_clean_type_and_aliases
raise Exception("Logic error, unexpected top level type!")
Exception: Logic error, unexpected top level type!
|