Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Pip scanning fails with message #389

Description

@BasileKoko

Issue template

Expected behavior

  • Pip scanning completes successfully

Actual behavior

  • Pip scanning fails with this message:
[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main-Executable_Stream_Thread] --- Traceback (most recent call last):
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main-Executable_Stream_Thread] ---   File "/home/jenkins/blackduck/runs/***********/shared/pip/pip-inspector.py", line 33, in <module>
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main-Executable_Stream_Thread] ---     from pip._internal.download import PipSession
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main-Executable_Stream_Thread] --- ModuleNotFoundError: No module named 'pip._internal.download'
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main] --- Executable finished: 1
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main] --- ------------------------------------------------------------------------------------------------------
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main] --- Finished extraction: FAILURE
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main] --- Code locations found: 0
�[1m2020-10-19 07:10:58�[0m 2020-10-19 07:10:58 INFO  [main] --- The Pip Inspector tree parse failed to produce output

Steps to Reproduce

  • Run any scan job while using pip version greater or equal to 20

Version

  • pip version 20.2.4

Language Version:

  • Python 3.7
    OS:

  • Ubuntu 18.04.2 LTS

PS: We believe that the issue can be resolved by replacing in your script pip-inspector.py "from pip._internal.download import PipSession" with "from pip._internal.network.session import PipSession".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions