Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Wrong warning: Package containing module is not listed in project requirements #126

Closed
nylocx opened this issue Oct 14, 2020 · 2 comments
Closed
Labels

Comments

@nylocx
Copy link

nylocx commented Oct 14, 2020

I noticed that with PyCharm 2020.2.3 and the poetry plugin 0.53 I get warnings that packages are not listed in the requirements.
For example a very simple environment where I just installed selenium:

❯ poetry update
Creating virtualenv ... /.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (0.1s)


Package operations: 2 installs, 0 updates, 0 removals

  - Installing urllib3 (1.25.10)
  - Installing selenium (3.141.0)

Gives me the warning:
image

I even added a requirements.txt but that did not help. If I switch to a non poetry interpreter like the System Interpreter the warning vanishes.
I really don't like warning and even more I don't like to add comments just to silence them. Is this a known bug or something specific to my environment?

Kind regards,
Alex

@koxudaxi
Copy link
Owner

@nylocx
Sorry for the late reply.

I could reproduce the problem.
I will find the reason.

Thank you very much.

@koxudaxi
Copy link
Owner

I just found the reason.
poetry command output is changed.

v1.0

poetry install --dry-run
Installing dependencies from lock file

No dependencies to install or update

  - Skipping six (1.15.0) Already installed
  - Skipping jmespath (0.10.0) Already installed
  - Skipping python-dateutil (2.8.1) Already installed
  - Skipping urllib3 (1.25.10) Already installed
  - Skipping botocore (1.18.18) Already installed
  - Skipping s3transfer (0.3.3) Already installed
  - Skipping boto3 (1.15.18) Already installed

v1.1

poetry install --dry-run
Installing dependencies from lock file

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

  • Installing six (1.15.0): Skipped for the following reason: Already installed
  • Installing jmespath (0.10.0): Skipped for the following reason: Already installed
  • Installing python-dateutil (2.8.1): Skipped for the following reason: Already installed
  • Installing urllib3 (1.25.10): Skipped for the following reason: Already installed
  • Installing botocore (1.18.18): Skipped for the following reason: Already installed
  • Installing s3transfer (0.3.3): Skipped for the following reason: Already installed
  • Installing boto3 (1.15.18): Skipped for the following reason: Already installed


I fix to support both version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants