-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Package docutils (0.21.post1) not found. #9293
Comments
there is some sort of screw-up between docutils and pypi, see https://pypi.org/project/docutils/0.21/#files - the source distribution has been uploaded as you should likely report this:
|
Hello! I have tracked down this issue and it is poetry's pypi resolver. Please see this repository for details. https://github.com/joekiller/poetry-post-release-issue Edit, I'll copy and paste the explanation and workaround here from the README.md: Poetry fails to resolve post-release versions when utilizing the default pypi provider.Proof of concept and analysis regarding #9293 This project shows an example of where poetry fails to properly resolve the latest release due to an update utilizing Example case When poetry resolved the versions in via Poetry is trying to hit the release api of a version that will not exist. Poetry should instead look for the Explanation of workaroundsMany people will report adding a non-priority indicated pypi fixes this issue. For example adding:
There are two reasons why this workaround "works":
Where the bug isThe bug occurs when a post release is in pypi and there isn't a The pypi_repository._get_release_info will end up throwing PackageNotFound due to the json_data not Suggested Points of FixingThere are several ways in which one could fix this.
or
Why is this hard to findIf you ever get a I found this because a colleague mentioned the issue, and it appears the dependency was updated April 9th and today |
attribute to python-poetry/poetry#9293
That's awesome @joekiller, thanks. I'll update the title to reflect your findings. |
I do not think a poetry fix is likely here: the root cause is that pypi is providing inconsistent information (namely there is a distribution with version 0.21.post1, but no corresponding release). Much the fastest likely route to sorting this out is for docutils to publish a fixed release. Longer term
|
rereading what @joekiller wrote, I think that most of it is a wrong generalization, based on a misunderstanding. it is not expected that distributions for a post release be bundled together with the original release: there should be a whole separate release. eg compare https://pypi.org/project/tensorflow/2.15.0/ and https://pypi.org/project/tensorflow/2.15.0.post1/ poetry "fails to resolve post-release versions via default pypi provider" is simply not true. things are going wrong in this specific instance because this specific package has been mis-published |
@dimbleby thanks for reading the analysis. I agree that the post-release guidance indicates that the indicator should be present, regardless of non-code changes. The premise in this issue should be closed as it's a botched release by docutils. |
I reverted the issue's title. I wonder how pip is then able to install it. I'll get in touch w/ warehouse and close this one. Thanks a ton to both of you! |
See GH issue python-poetry/poetry#9293
See GH issue python-poetry/poetry#9293
Unable to be installed by poetry due to a malformed upload to pypi See python-poetry/poetry#9293
Unable to be installed by poetry due to a malformed upload to pypi See python-poetry/poetry#9293
Multiple issues with poetry environment. We do not want to deprecate Python 3.8 and 3.9 but our development and documentation dependencies now require 3.10. Also an issue with docutils is preventing resolution. See: python-poetry/poetry#9293
Multiple issues with poetry environment. We do not want to deprecate Python 3.8 and 3.9 but our development and documentation dependencies now require 3.10. Also an issue with docutils is preventing resolution. See: python-poetry/poetry#9293
This release is bodged, and causes Poetry to fail when it tries to fetch the tar: python-poetry/poetry#9293 (comment) It is being tracked: pypi/warehouse#15749 A fix is inbound here: pypi/warehouse#15795 This is a hotfix for this particular package, until the fixes from `pypi/warehouse` are out. The `post` notation is very unique: pypi/warehouse#15749 (comment) and is being used in 0.004% of the releases.
This release is bodged, and causes Poetry to fail when it tries to fetch the tar: python-poetry/poetry#9293 (comment) It is being tracked: pypi/warehouse#15749 A fix is inbound here: pypi/warehouse#15795 This is a hotfix for this particular package, until the fixes from `pypi/warehouse` are out. The `post` notation is very unique: pypi/warehouse#15749 (comment) and is being used in 0.004% of the releases.
This release is bodged, and causes Poetry to fail when it tries to fetch the tar: python-poetry/poetry#9293 (comment) It is being tracked: pypi/warehouse#15749 A fix is inbound here: pypi/warehouse#15795 This is a hotfix for this particular package, until the fixes from `pypi/warehouse` are out. The `post` notation is very unique: pypi/warehouse#15749 (comment) and is being used in 0.004% of the releases.
This release is bodged, and causes Poetry to fail when it tries to fetch the tar: python-poetry/poetry#9293 (comment) It is being tracked: pypi/warehouse#15749 A fix is inbound here: pypi/warehouse#15795 This is a hotfix for this particular package, until the fixes from `pypi/warehouse` are out. The `post` notation is very unique: pypi/warehouse#15749 (comment) and is being used in 0.004% of the releases.
This release is bodged, and causes Poetry to fail when it tries to fetch the tar: python-poetry/poetry#9293 (comment) It is being tracked: pypi/warehouse#15749 A fix is inbound here: pypi/warehouse#15795 This is a hotfix for this particular package, until the fixes from `pypi/warehouse` are out. The `post` notation is very unique: pypi/warehouse#15749 (comment) and is being used in 0.004% of the releases.
Unable to be installed by poetry due to a malformed upload to pypi See python-poetry/poetry#9293
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Cross-posting pypa/twine#1082 for I think it's rather an issue with poetry.
When I try
poetry add twine
in a real or an empty project I receive:I don't quite see why but I'll post the debug info below.
Workarounds
Works when installed via pip.
Works when I add
0.21
without the nonexistingpost1
to the dev dependencies explicitly. Can't spot where the dependency comes from - graph yields nothing for it cannot be installed but pip does neither.Poetry Installation Method
other
Operating System
macOS
Poetry Version
1.8.2_1
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: