Skip to content

ModuleNotFoundError starting from pip 24.1 #1046

@summis

Description

@summis

Hi!

In our project, with pip version 24.0 everything works correctly

$ license_finder
LicenseFinder::NPM: is active for 'XXX'
LicenseFinder::Pip: is active for 'XXX'

All dependencies are approved for use

However, when using pip version 24.1 ModuleNotFoundError appears in the output

$ license_finder
LicenseFinder::NPM: is active for 'XXX'
LicenseFinder::Pip: is active for 'XXX'
pip3 install: did not succeed.
pip3 install: LicenseFinder command 'python3 /home/tommi/.local/share/gem/ruby/3.0.0/gems/license_finder-7.2.1/bin/license_finder_pip.py /home/tommi/dev/XXX/requirements.txt' failed:
        /home/tommi/.local/share/gem/ruby/3.0.0/gems/license_finder-7.2.1/bin/license_finder_pip.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pip._vendor import pkg_resources
Traceback (most recent call last):
  File "/home/tommi/.local/share/gem/ruby/3.0.0/gems/license_finder-7.2.1/bin/license_finder_pip.py", line 21, in <module>
    from pip._vendor.six import print_
ModuleNotFoundError: No module named 'pip._vendor.six'


All dependencies are approved for use

Might be related to pypa/pip@692b7f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions