Bug 2246284 - python-parso fails to build with Python 3.13: NotImplementedError: Python version 3.13 is currently not supported.
Summary: python-parso fails to build with Python 3.13: NotImplementedError: Python ver...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-parso
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George 🤠
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-26 07:26 UTC by Karolina Surma
Modified: 2024-03-08 06:17 UTC (History)
4 users (show)

Fixed In Version: python-parso-0.8.3-10.fc41
Clone Of:
Environment:
Last Closed: 2024-03-08 06:17:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-26 07:26:22 UTC
python-parso fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

_________________ ERROR collecting test/test_parser_tree.py ___________________
parso/grammar.py:252: in load_grammar
    return _loaded_grammars[path]
E   KeyError: '/builddir/build/BUILD/parso-0.8.3/parso/python/grammar313.txt'

During handling of the above exception, another exception occurred:
parso/grammar.py:255: in load_grammar
    with open(path) as f:
E   FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/parso-0.8.3/parso/python/grammar313.txt'

During handling of the above exception, another exception occurred:
/usr/lib/python3.13/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/usr/lib/python3.13/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.13/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/usr/lib/python3.13/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/usr/lib/python3.13/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/usr/lib/python3.13/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/usr/lib/python3.13/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1381: in _gcd_import
    ???
<frozen importlib._bootstrap>:1354: in _find_and_load
    ???
<frozen importlib._bootstrap>:1325: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:929: in _load_unlocked
    ???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
test/test_parser_tree.py:245: in <module>
    sample_module = parse('x + y')
parso/__init__.py:57: in parse
    grammar = load_grammar(version=version)
parso/grammar.py:264: in load_grammar
    raise NotImplementedError(message)
E   NotImplementedError: Python version 3.13 is currently not supported.
=========================== short test summary info ============================
ERROR test/test_diff_parser.py - NotImplementedError: Python version 3.13 is ...
ERROR test/test_dump_tree.py - NotImplementedError: Python version 3.13 is cu...
ERROR test/test_parser_tree.py - NotImplementedError: Python version 3.13 is ...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
====================== 249 deselected, 3 errors in 0.75s =======================



https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06546816-python-parso/

For all our attempts to build python-parso with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-parso/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Aoife Moloney 2024-02-15 23:02:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Fedora Update System 2024-03-08 06:14:06 UTC
FEDORA-2024-e9335d33a8 (python-parso-0.8.3-10.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e9335d33a8

Comment 3 Fedora Update System 2024-03-08 06:17:20 UTC
FEDORA-2024-e9335d33a8 (python-parso-0.8.3-10.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.