question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poetry cannot find and install package with 0.???a (alpha/beta designation) in its version

See original GitHub issue
  • 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 add bit-vector
                                                        
[ValueError]                                
Could not find a matching version of package bit-vector  

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

poetry search bit-vector shows:

bit-vector (0.42a0)
 A BitVector class for Python

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
pawamoycommented, Jan 31, 2019

Just a note: poetry could print a message like If the package you try to install is in alpha/beta, try with the --allow-prereleases flag when the command fails. Currently, people experiencing this issue must come here on the issue tracker and search for this problem to get the solution, which is not efficient. Sometimes they will even open duplicate issues 😅 A simple message could help reduce this.

$ 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>)...
1reaction
woilecommented, Jan 27, 2019

Have you tried adding the --allow-prereleases flag?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can Python Poetry be forced to use a certain setuptools ...
I found a workaround for my problem. In the case of pyhash, the dependency on use_2to3 has already been removed in the master...
Read more >
Why you should use Poetry instead of Pip or Conda for Python ...
For example, if we ran the command conda install -c conda-forge numpy==1.22.3 , we would see the following in the terminal:
Read more >
Png to vpk
Modern free online conversion tool is This PNG to JPG convert app responds to a request to make documents easier to send, shareJPG...
Read more >
python jobs columbus ohio
The Python Jobs Guy August 11, 2022 0 Views 0 Save Saved Removed 0 Python Developer at Echo IT Solutions Role requiring 'No...
Read more >
Commands | Documentation | Poetry - Python dependency ...
To get help from the command-line, simply call poetry to see the complete list of commands, ... --dependency : Package to require with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found