Software Development
How to fix the PyYAML cython_sources and CSafeLoader errors on Python 3.15 in Docker
PyYAML 6.0.3 ships no wheels for Python 3.15, so pip builds it from source. The pinned versions 6.0 and 5.4.1 fail with AttributeError: cython_sources, and 6.0.3 installs on python:3.15-slim without libyaml, so CSafeLoader does not exist. Raise the pin to 6.0.3 and install gcc and libyaml-dev while building the image.