Unable to find installation candidates (protobuf), but can install via pip
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. (similar issues found, but which are supposed to be solved)
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: macOS 12.3.1 (Darwin Kernel Version 21.4.0)
-
Poetry version: 1.1.13
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/esciara/857729c278b4de37a6da82e7f62b0a3f
Issue
Same kind of issue than #3621 . All other related issue I found where closed with a fix supposedly in place.
Running a poetry install
with the pyproject.toml
file in the gist reproduces the problem. Installation works fine with a pip install protobuf
.
Issue Analytics
- State:
- Created a year ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
"Unable to find installation candidates" in poetry trying to ...
Installing that package with pip does work. How do I debug such issues? I tried running poetry install -vvv , but all I...
Read more >Install OR-Tools | Google Developers
Python. The easiest way to install OR-Tools for Python is from the command line, as shown above. However, if you prefer, you can...
Read more >TensorFlow - Download and Setup - Google Git
Installing from sources: Install TensorFlow by building a pip wheel that you ... TensorFlow and protobuf using pip uninstall first to make sure...
Read more >Installing BTCRecover - Read the Docs
There are a few basic steps to installing BTCRecover. 1) Download and unzip the BTCRecover script. 2) Download and install Python3. 3) Install...
Read more >grpcio-tools - PyPI
Installing From PyPI ... Windows users may need to invoke pip.exe from a command line ran as administrator. n.b. On Windows and on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The reason why no wheel was found during install was because the
protobuf-3.20.1-py2.py3-none-any.whl
was skipped because of missing hash in the lock file.Seen with @abn : it was a cache issue that has been resolved by:
poetry.lock
filepoetry install
Here is the sequence of what might have happened:
It is to be noted that the first time this happened,
protobuf 3.20.1
was only 12 hours old. Has the library been republished with the same version? The cache is probably not invalidated in this scenario. @abn wonders whethere Poetry should use the serial value from PyPI to invalidate artifact caches.@abn feel free to comment or to ask to correct.