Closed Priyadhana closed 3 years ago
I am also seeing the same problem, I am using following versions : detect-secrets-server version 0.3.2 detect-secrets version v1.0.3
Don't see code for get_secrets_not_in_baseline in detect_secrets.core.baseline
Hi I installed the detect-secrets-server as mentioned the in documentation "pip install detect-secrets-server[cron]". When I run the next command it throws this error. Am I missing something?
D:\Users>detect-secrets-server add git@github.com:yelp/detect-secrets Traceback (most recent call last): File "d:\users\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\users\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Users\AppData\Local\Programs\Python\Python39\Scripts\detect-secrets-server.exe__main.py", line 4, in
File "d:\users\appdata\local\programs\python\python39\lib\site-packages\detect_secrets_server\ main.py", line 5, in
from detect_secrets_server import actions
File "d:\users\appdata\local\programs\python\python39\lib\site-packages\detect_secrets_server\actions\ init__.py", line 1, in
from .initialize import add_repo # noqa: F401
File "d:\users\appdata\local\programs\python\python39\lib\site-packages\detect_secrets_server\actions\initialize.py", line 1, in
from detect_secrets_server.repos.base_tracked_repo import OverrideLevel
File "d:\users\appdata\local\programs\python\python39\lib\site-packages\detect_secrets_server\repos\base_tracked_repo.py", line 6, in
from detect_secrets.core.baseline import get_secrets_not_in_baseline
ImportError: cannot import name 'get_secrets_not_in_baseline' from 'detect_secrets.core.baseline'