Poetry: pip check fails because of the importlib-metadata version

Created on 15 Feb 2020  路  6Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

When installing poetry with pip install inside the Docker container, pip check command fails.
Dockerfile: https://github.com/wemake-services/wemake-django-template/blob/master/%7B%7Bcookiecutter.project_name%7D%7D/docker/django/Dockerfile

Current solution is to limit the importlib-metadata version to <1.2.0,>=1.1.3 in pyproject.toml

But, I guess the full solution is to remove version restriction from poetry's side.

Bug

Most helpful comment

Yes, this still happens:

poetry 1.0.5 has requirement importlib-metadata<1.2.0,>=1.1.3; python_version < "3.8", but you have importlib-metadata 1.6.0.

All 6 comments

@sobolevn does this still happen with 1.0.5 in your environment? If yes, can you also provide the failing logs please?

Yes, this still happens:

poetry 1.0.5 has requirement importlib-metadata<1.2.0,>=1.1.3; python_version < "3.8", but you have importlib-metadata 1.6.0.

@abn Bumping this version because I am having the same issues as @sobolevn.

At the moment the version for importlib-metadata is fixed to ~1.1.3. I guess we can set it to ^1.1.3, can we @sdispater ?

Maybe even >=1.1.3?

Hello,

in the current preview release (1.1.0b3) the importlib-metadata dependency is defined as importlib-metadata = {version = "^1.6.0", python = "<3.8"}.

So this issue should be fixed.

fin swimmer

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thmo picture thmo  路  3Comments

ghost picture ghost  路  3Comments

AWegnerGitHub picture AWegnerGitHub  路  3Comments

alexlatchford picture alexlatchford  路  3Comments

probablykasper picture probablykasper  路  3Comments