Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTD build fails with TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' #16

Closed
toni-sissala opened this issue Sep 6, 2024 · 0 comments · Fixed by #17
Assignees

Comments

@toni-sissala
Copy link
Collaborator

This failure happens during installing of requirements.txt. It occurs because pip 24 uses deprecated setuptools command "python setup.py develop" under the hood when installing packages as editable and when wheel is installed in same environment. RTD uses virtualenv package to create the python virtual environment that is used to build the docs, and that package installs wheel also. There is a conflict in dependencies with setuptools-package and packaging-package, and the build fails.

Pip 24 can be instructed to use "modern mechanism for editable installs" by adding --use-pep517 flag to the install command. In RTD this can be achieved by customizing the pre-build step. Note, that --use-pep517 will become the default from pip 25 onwards.

Some links with additional info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant