Skip to content

[BUG] Unable to create a baseline file #180

@Sher-Chowdhury

Description

@Sher-Chowdhury

Describe the bug
I'm getting the following error when trying to generate a new baseline file:

detect-secrets scan --update .secrets.baseline                                                 
Traceback (most recent call last):
  File "/Users/sher/.pyenv/versions/3.10.7/lib/python3.10/site-packages/requests_toolbelt/_compat.py", line 48, in <module>
    from requests.packages.urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib' (/Users/sher/.pyenv/versions/3.10.7/lib/python3.10/site-packages/urllib3/contrib/__init__.py)

To Reproduce

$ sw_vers
ProductName:            macOS
ProductVersion:         26.3
BuildVersion:           25D125

$ python --version
Python 3.10.7

$ detect-secrets --version
0.13.1+ibm.64.dss

$ detect-secrets scan --update .secrets.baseline                                                 
Traceback (most recent call last):
  File "/Users/sher/.pyenv/versions/3.10.7/lib/python3.10/site-packages/requests_toolbelt/_compat.py", line 48, in <module>
    from requests.packages.urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib' (/Users/sher/.pyenv/versions/3.10.7/lib/python3.10/site-packages/urllib3/contrib/__init__.py)

During handling of the above exception, another exception occurred: ....

Impact

unabled to create baseline file.

Additional context:

  • Operating environment,
  • Host or local,
  • Operating System,
  • Languages scanned etc;
  • Repo & build context links.
  • Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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