Bug 2022282 - python-llvmlite fails to build with Python 3.11: RuntimeError: Cannot install on Python version 3.11.0; only versions >=3.7,<3.11 are supported.
Summary: python-llvmlite fails to build with Python 3.11: RuntimeError: Cannot install...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-llvmlite
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-11-11 09:21 UTC by Tomáš Hrnčiar
Modified: 2022-05-09 11:12 UTC (History)
5 users (show)

Fixed In Version: python-llvmlite-0.37.0-4.fc37
Clone Of:
Environment:
Last Closed: 2022-05-09 11:12:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-11-11 09:21:53 UTC
python-llvmlite fails to build with Python 3.11.0a2.

Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 421, in main
    generate_requires(
    ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 355, in generate_requires
    generate_build_requirements(backend, requirements)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 251, in generate_build_requirements
    new_reqs = get_requires()
               ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 154, in get_requires_for_build_wheel
    return self._get_build_requires(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 135, in _get_build_requires
    self.run_setup()
    ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 259, in run_setup
    self).run_setup(setup_script=setup_script)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 150, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "setup.py", line 55, in <module>
    _guard_py_ver()
    ^^^^^^^^^^^^^^^
  File "setup.py", line 52, in _guard_py_ver
    raise RuntimeError(msg.format(cur_py, min_py, max_py))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot install on Python version 3.11.0; only versions >=3.7,<3.11 are supported.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02940143-python-llvmlite/

For all our attempts to build python-llvmlite with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-llvmlite/

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.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Ben Beasley 2021-11-12 00:31:29 UTC
Currently, loosening the version guard (as we did for Python 3.10) is enough to get a build on Python 3.11 with passing tests (https://src.fedoraproject.org/rpms/python-llvmlite/pull-request/1, https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/2950605/).

Comment 2 Ben Cotton 2022-02-08 21:28:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Fedora Update System 2022-05-09 11:11:58 UTC
FEDORA-2022-ea83cb045e has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ea83cb045e

Comment 4 Fedora Update System 2022-05-09 11:12:56 UTC
FEDORA-2022-ea83cb045e has been pushed to the Fedora 37 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.