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).
- OS version and name:
- Poetry version: 1.0.3
- Link of a Gist with the contents of your pyproject.toml file: https://github.com/wemake-services/wemake-django-template/blob/b4102849daf420bc3a6af673ff5cfd8af9a70835/{{cookiecutter.project_name}}/pyproject.toml
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:
- Created 4 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, this still happens:
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