python-poetry / python-poetry/poetry

Some packages are not installed (Skipped for the following reason: Not currently installed)

Open
#5,608 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/question
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • 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: 5.17.5-arch1-1 (Arch Linux)

  • Poetry version:1.1.13

  • Link of a Gist with the contents of your pyproject.toml file https://gist.github.com/NChechulin/838962e81e0f03c124af60d7025110fa

Issue

I tried installing torch and other related packages via poetry add torch, but it failed due to hash mismatch.
I ended up with using this command: poetry add torch --platform linux --python 3.10 which worked without errors.

In my python file, I import a few installed modules, but it fails to run and says that the package is not installed.
I executed poetry update and it ran without failures (even with -vvv).

When I do poetry install -vvv, I get the following output:

poetry install -vvv output (spoiler)
sing virtualenv: /home/nikolay/.cache/pypoetry/virtualenvs/gnn-learner-Of7VmMOR-py3.10
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 0 installs, 0 updates, 0 removals, 35 skipped

  • Removing certifi (2021.10.8): Pending...
  • Removing certifi (2021.10.8): Skipped for the following reason: Not currently installed
  • Removing charset-normalizer (2.0.12): Pending...
  • Removing charset-normalizer (2.0.12): Skipped for the following reason: Not currently installed
  • Removing colorama (0.4.4): Pending...
  • Removing colorama (0.4.4): Skipped for the following reason: Not currently installed
  • Removing idna (3.3): Pending...
  • Removing idna (3.3): Skipped for the following reason: Not currently installed
  • Removing jinja2 (3.1.2): Pending...
  • Removing jinja2 (3.1.2): Skipped for the following reason: Not currently installed
  • Removing joblib (1.1.0): Pending...
  • Removing joblib (1.1.0): Skipped for the following reason: Not currently installed
  • Removing markupsafe (2.1.1): Pending...
  • Removing markupsafe (2.1.1): Skipped for the following reason: Not currently installed
  • Removing pillow (9.1.0): Pending...
  • Removing pillow (9.1.0): Skipped for the following reason: Not currently installed
  • Removing pandas (1.4.2): Pending...
  • Removing pandas (1.4.2): Skipped for the following reason: Not currently installed
  • Removing pyparsing (3.0.9): Pending...
  • Removing pyparsing (3.0.9): Skipped for the following reason: Not currently installed
  • Removing python-dateutil (2.8.2): Pending...
  • Removing python-dateutil (2.8.2): Skipped for the following reason: Not currently installed
  • Removing pytz (2022.1): Pending...
  • Removing pytz (2022.1): Skipped for the following reason: Not currently installed
  • Removing requests (2.27.1): Pending...
  • Removing requests (2.27.1): Skipped for the following reason: Not currently installed
  • Removing six (1.16.0): Pending...
  • Removing six (1.16.0): Skipped for the following reason: Not currently installed
  • Removing threadpoolctl (3.1.0): Pending...
  • Removing threadpoolctl (3.1.0): Skipped for the following reason: Not currently installed
  • Removing typing-extensions (4.2.0): Pending...
  • Removing typing-extensions (4.2.0): Skipped for the following reason: Not currently installed
  • Removing scikit-learn (1.1.0): Pending...
  • Removing scikit-learn (1.1.0): Skipped for the following reason: Not currently installed
  • Removing torch-cluster (1.6.0): Pending...
  • Removing torch-cluster (1.6.0): Skipped for the following reason: Not currently installed
  • Removing torch-sparse (0.6.13): Pending...
  • Removing torch-sparse (0.6.13): Skipped for the following reason: Not currently installed
  • Removing torch-spline-conv (1.2.1): Pending...
  • Removing torch-spline-conv (1.2.1): Skipped for the following reason: Not currently installed
  • Removing torchaudio (0.11.0): Pending...
  • Removing torchaudio (0.11.0): Skipped for the following reason: Not currently installed
  • Removing tqdm (4.64.0): Pending...
  • Removing tqdm (4.64.0): Skipped for the following reason: Not currently installed
  • Removing torch (1.11.0): Pending...
  • Removing torch (1.11.0): Skipped for the following reason: Not currently installed
  • Removing torch-geometric (2.0.4): Pending...
  • Removing torch-geometric (2.0.4): Skipped for the following reason: Not currently installed
  • Removing urllib3 (1.26.9): Pending...
  • Removing urllib3 (1.26.9): Skipped for the following reason: Not currently installed
  • Removing torchvision (0.12.0): Pending...
  • Removing torchvision (0.12.0): Skipped for the following reason: Not currently installed
  • Installing click (8.1.3): Pending...
  • Installing click (8.1.3): Skipped for the following reason: Already installed
  • Installing mypy-extensions (0.4.3): Pending...
  • Installing mypy-extensions (0.4.3): Skipped for the following reason: Already installed
  • Installing platformdirs (2.5.2): Pending...
  • Installing platformdirs (2.5.2): Skipped for the following reason: Already installed
  • Installing numpy (1.22.3): Pending...
  • Installing numpy (1.22.3): Skipped for the following reason: Already installed
  • Installing pathspec (0.9.0): Pending...
  • Installing pathspec (0.9.0): Skipped for the following reason: Already installed
  • Installing tomli (2.0.1): Pending...
  • Installing tomli (2.0.1): Skipped for the following reason: Already installed
  • Installing black (22.3.0): Pending...
  • Installing black (22.3.0): Skipped for the following reason: Already installed
  • Installing isort (5.10.1): Pending...
  • Installing isort (5.10.1): Skipped for the following reason: Already installed
  • Installing scipy (1.8.0): Pending...
  • Installing scipy (1.8.0): Skipped for the following reason: Already installed

I don't really understand the Skipped for the following reason: Not currently installed part.

Poetry claims No dependencies to install or update.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the linked pyproject.toml, Poetry 1.1.13, and the poetry add, poetry update, and poetry install -vvv commands. Trace the installer path that reports packages as pending and then skips them, and consider the issue done when the dependency state is handled consistently and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.