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

Incompatible with pip 23.2: ImportError: cannot import name 'DEV_PKGS' from 'pip._internal.commands.freeze' #1916

Closed
hofrob opened this issue Jul 17, 2023 · 2 comments

Comments

@hofrob
Copy link

hofrob commented Jul 17, 2023

Environment Versions

  1. Ubuntu 22.04 LTS
  2. Python version: Python 3.11.4
  3. pip version: pip 23.2
  4. pip-tools version: pip-compile, version 6.14.0

Steps to replicate

  1. pip-sync --version

Expected result

Show version number just like pip-compile --version.

Actual result

Traceback (most recent call last):
  File "/path/to/project/venv/bin/pip-sync", line 5, in <module>
    from piptools.scripts.sync import cli
  File "/path/to/project/venv/lib/python3.11/site-packages/piptools/scripts/sync.py", line 17, in <module>
    from .. import sync
  File "/path/to/project/venv/lib/python3.11/site-packages/piptools/sync.py", line 11, in <module>
    from pip._internal.commands.freeze import DEV_PKGS
ImportError: cannot import name 'DEV_PKGS' from 'pip._internal.commands.freeze' (/path/to/project/venv/lib/python3.11/site-packages/pip/_internal/commands/freeze.py)
@webknjaz
Copy link
Member

webknjaz commented Jul 17, 2023

This has been fixed in the recent release: #1906.

@hofrob
Copy link
Author

hofrob commented Jul 17, 2023

Sorry, for some reason I thought I was on the latest release.

Thanks!

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

No branches or pull requests

2 participants