-
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
Poetry cannot find and install package with 0.???a (alpha/beta designation) in its version #824
Comments
The problem seems to be with packages with a/b. ... (alpha/beta) designation. The same thing happens with sty. Search:
Add:
This works:
|
Have you tried adding the |
I commented the following in the pyproject.toml:
And ran add with --allow-prereleases, and I see:
I also see this line in pyproject.toml:
I am not sure why it does not pick the newer version: "0.42a0"! |
Adding the specific version works though:
Not sure if this is expected, but this does not work:
But this works:
|
Apparently either of the following:
causes a hang that I reported in issue #832 |
Just a note: $ poetry add sty
[ValueError]
Could not find a matching version of package sty
If the package you want to install is in alpha/beta, try with the --allow-prereleases flag
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)... |
The message given by black is confusing and inadequate in this instance. The message should be improved so that user understands situation properly. Better message might be,
Edit: Opened PR #1216 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one. |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Oracle Linux Server 7.5
Poetry version: 0.12.11
Link of a Gist with the contents of your pyproject.toml file: Proprietary!
Issue
When trying to add "bit-vector" package, I get this error:
poetry search bit-vector shows:
Editing the .toml file and adding 'bit-vector = "0.26a0"' works, but poetry show --outdated does not show new "0.42a0" version nor, poetry update updates to this version.
The text was updated successfully, but these errors were encountered: