Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ImportError: cannot import name SensitivityValues #4

@dcepler

Description

@dcepler

When installing latest version of detect-secrets-server using:

git clone https://github.com/Yelp/detect-secrets-server.git /usr/share/detect-secrets-server
pip install /usr/share/detect-secrets-server

I have the following error when trying to execute detect-secrets-server:

Traceback (most recent call last):
  File "/usr/local/bin/detect-secrets-server", line 7, in <module>
    from detect_secrets_server.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/detect_secrets_server/__main__.py", line 9, in <module>
    from detect_secrets.plugins import SensitivityValues
ImportError: cannot import name SensitivityValues

The class SensitivityValues has been deleted from detect-secrets as noted in this PR Yelp/detect-secrets#44. It references that detect-secrets-server should be pinned to specific version but the README.md does not say which version.

I was able to install using pip with the following pinned version

pip install detect-secrets==0.8.8
pip install detect-secrets-server

Either README.md needs to be updated or the detect-secrets-server code needs to be updated accordingly.

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