Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kedro install fails due to ImportError: cannot import name 'get_installed_distributions' from 'pip._internal.utils.misc' #994

Closed
clstaudt opened this issue Oct 27, 2021 · 2 comments
Labels
Issue: Bug Report 🐞 Bug that needs to be fixed

Comments

@clstaudt
Copy link

clstaudt commented Oct 27, 2021

Description

kedro install fails due to pip incompatibility.

Context

This bug has appeared recently and makes kedro install unusable.

Steps to Reproduce

  1. install kedro==0.16.6
  2. run kedro install --build-reqs

Expected Result

kedro install --build-reqs should install all requirements

Actual Result

╰─ kedro install --build-reqs                                                                                  (packaging-measurement-staging) 
/Users/cls/miniforge3/envs/packaging-measurement-staging/bin/python3.8 -m piptools compile -q /Users/cls/Documents/Work/Projects/XYZ/packaging-measurement-new/src/requirements.in
Traceback (most recent call last):
  File "/Users/cls/miniforge3/envs/packaging-measurement-staging/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/cls/miniforge3/envs/packaging-measurement-staging/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/cls/miniforge3/envs/packaging-measurement-staging/lib/python3.8/site-packages/piptools/__main__.py", line 3, in <module>
    from piptools.scripts import compile, sync
  File "/Users/cls/miniforge3/envs/packaging-measurement-staging/lib/python3.8/site-packages/piptools/scripts/sync.py", line 10, in <module>
    from pip._internal.utils.misc import get_installed_distributions
ImportError: cannot import name 'get_installed_distributions' from 'pip._internal.utils.misc' (/Users/cls/miniforge3/envs/packaging-measurement-staging/lib/python3.8/site-packages/pip/_internal/utils/misc.py)

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Kedro version used (pip show kedro or kedro -V): 0.16.6
  • Python version used (python -V): Python 3.8.12, pip 21.3.1, conda via miniforge
  • Operating system and version: macOS 11.6
@clstaudt clstaudt added the Issue: Bug Report 🐞 Bug that needs to be fixed label Oct 27, 2021
@datajoely
Copy link
Contributor

Possibly related to this, it's the first we've seen this issue reported
jazzband/pip-tools#1503

@stale
Copy link

stale bot commented Dec 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 26, 2021
@stale stale bot closed this as completed Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Bug Report 🐞 Bug that needs to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants