1π
β
It is the pyyaml issue I had the similar issue when upgrading a legacy project from django 2 to 4:
You can have a look at this post: Docker-compose no longer building image (AttributeError: cython_sources)
You can also try this
pip install "cython<3.0.0" && pip install --no-build-isolation pyyaml==6.0
Just as mentioned here: https://github.com/yaml/pyyaml/issues/724#issuecomment-1638636728
Or just as you did it:
pip install --force-reinstall -v "PyYAML==6.0.1" --no-build-isolation
Note: dowgrading to previous version should always be avoided as it may have serious security issue and that is why new version are released like in case of pyyaml.
π€Ahtisham
Source:stackexchange.com