question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip check fails because of the importlib-metadata version

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.
  • 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/{{cookiecutter.project_name}}/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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
sobolevncommented, Apr 1, 2020

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.
1reaction
finswimmercommented, Sep 22, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

`importlib-metadata` version is incompatible with `setuptools ...
I imported pandas library on jupyter notebook After that a warning appears like importlib-metadata version is incompatible with ...
Read more >
[Fixed] ModuleNotFoundError: No module named 'importlib ...
The error might persist even after you have installed the importlib-metadata library. This likely happens because pip is installed but doesn't reside in...
Read more >
Issue 47060: importlib.metadata.version can return None
Create a new virtual environment. I'm using CPython 3.10.2 as my interpreter. 2. Within the venv, `pip install bottle`. (Any package will do;...
Read more >
Changelog - pip documentation v22.3.1
Enable the importlib.metadata metadata implementation by default on Python 3.11 (or ... Disable location mismatch warnings on Python versions prior to 3.10.
Read more >
Errors while running pip install -r requirements.txt - MongoDB
Preparing wheel metadata … error ERROR: Command errored out with exit status 1: ... The following is check the version of Python and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found