Skip to content

ImportError: cannot import name 'CronSlices' from 'crontab'  #66

@hopewise

Description

@hopewise

I've just installed detect-secrets-server on Ubuntu 20.04
but, when I try to add a local repo, I get this error:

detect-secrets-server add /home/samir/projects/website --local
Traceback (most recent call last):
  File "/usr/local/bin/detect-secrets-server", line 5, in <module>
    from detect_secrets_server.__main__ import main
  File "/home/samir/.local/lib/python3.8/site-packages/detect_secrets_server/__main__.py", line 6, in <module>
    from detect_secrets_server.core.usage.parser import ServerParserBuilder
  File "/home/samir/.local/lib/python3.8/site-packages/detect_secrets_server/core/usage/parser.py", line 6, in <module>
    from .add import AddOptions
  File "/home/samir/.local/lib/python3.8/site-packages/detect_secrets_server/core/usage/add.py", line 4, in <module>
    from crontab import CronSlices
ImportError: cannot import name 'CronSlices' from 'crontab' (/usr/local/lib/python3.8/dist-packages/crontab/__init__.py)

any idea?

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