Skip to content

PyYAML requirement is buggy for Cython > 3.0

Summary

(At least on Python 3.12), installing the requirements from requirements.txt results in an error

                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<string>", line 204, in get_source_files
        File "/tmp/pip-build-env-24b_bxxt/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources

due to an incompatibility of the used PyYAML 6.0.0 with cython 3.0. Upgrading the dependency to 6.0.1 should fix the problem.

Expected Behavior

Python requirements should be installable on Python 3.12

Actual Behavior

Steps to Reproduce the Problem

  1. python -m pip install -r requirements.txt

Specifications

  • Version:
  • Platform: Fedora 39, Python 3.12

Possible fixes

Upgrade PyYAML dependency to at least 6.0.1

Edited by Joscha Schmiedt