Home > Enterprise >  Poetry 1.1.11 | Unable to find installation candidates for
Poetry 1.1.11 | Unable to find installation candidates for

Time:11-03

I wanted to add a dependency for pathlib package.

Specification:

  • Windows 10,
  • Visual Studio Code,
  • Ubuntu Bash.

Errors:

  • 401 Client Error (solved),
  • Unable to find installation candidates for all packages.

Terminal (updated):

me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ poetry add pathlib
Using version ^1.0.1 for pathlib

Updating dependencies
Resolving dependencies... (119.0s)

Writing lock file

Package operations: 55 installs, 14 updates, 0 removals

  • Updating grpcio (1.41.0 -> 1.41.1): Pending...
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       70│
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  • Updating grpcio (1.41.0 -> 1.41.1): Failed
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       70│
  RuntimeError
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  Unable to find installation candidates for grpcio (1.41.1)
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7068│
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7069│             links.append(link)
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7070│
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7071if not links:
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
    →  72raise RuntimeError(
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       7073"Unable to find installation candidates for {}".format(package)
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7074│             )
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7075│
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7076# Get the best link
  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating protobuf (3.18.1 -> 3.19.1): Pending...
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  • Updating protobuf (3.18.1 -> 3.19.1): Failed
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       70│
  RuntimeError
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  Unable to find installation candidates for protobuf (3.19.1)
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7068│
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       7069│             links.append(link)
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7070│
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7071if not links:
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│
    →  72raise RuntimeError(
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7073"Unable to find installation candidates for {}".format(package)
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7074│             )
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7075│
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7076# Get the best link
  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       70│

  • Updating pyparsing (2.4.7 -> 3.0.4): Failed

  RuntimeError

  Unable to find installation candidates for pyparsing (3.0.4)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 
       6869│             links.append(link)
       7071if not links:
    →  72raise RuntimeError(
       73"Unable to find installation candidates for {}".format(package)
       74│             )
       7576# Get the best link

  • Updating sqlalchemy (1.4.25 -> 1.4.26): Failed

  RuntimeError

  Unable to find installation candidates for sqlalchemy (1.4.26)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       7071if not links:
    →  72raise RuntimeError(
       73"Unable to find installation candidates for {}".format(package)
       74│             )
       7576# Get the best link

  • Updating traitlets (5.1.0 -> 5.1.1): Failed

  RuntimeError

  Unable to find installation candidates for traitlets (5.1.1)

  at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       6869│             links.append(link)
       7071if not links:
    →  72raise RuntimeError(
       73"Unable to find installation candidates for {}".format(package)
       74│             )
       7576# Get the best link


Failed to add packages, reverting the pyproject.toml file to its original content.

Please let me know if there is anything else I can add to post.

GitHub Issue post


Solutions

401 Client Error I needed to provide an Azure DevOps PAT. Microsoft Docs | Use personal access tokens

Unable to find installation candidates for ... (Pending solution)

CodePudding user response:

Thank you Seon. Posting your suggestion as an answer to help other community members.

You can use poetry self update

If you get RuntimeError Poetry was not installed with the recommended installer. Cannot update automatically. which means you have installed poetrywith pip

pip does not support automatic poetry updates. You should uninstall the poetry version currently installed, and reinstall it using the recommended method, which uses a custom installation script.

On osx/linux, you'll just have to run curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - to downlaod and run this installation script.

You can refer to Poetry was not installed with the recommended installer. Cannot update automatically

CodePudding user response:

I needed to provide an Azure DevOps PAT.

Microsoft Docs | Use personal access tokens

  • Related