If anyone got this error in Dec 2024 for a previously working python project:
This happens because your packages depend on six, but are not compatible with the new version of six (1.17.0) released on Dec 4, 2024.
Pinning the version to six==1.16.0 fixes the issue.