Skip to content

[BUG] Unable to create a baseline file #180

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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