Skip to content

from guardrails.hub import CompetitorCheck failing in Python 3.13 #26

@Parth94

Description

@Parth94

Hi team,

I tried running competitor check in py-scripts and importing below in file
"from guardrails.hub import CompetitorCheck"

Error:
ImportError: cannot import name 'CompetitorCheck' from 'guardrails.hub' (.....\AppData\Local\anaconda3\Lib\site-packages\guardrails\hub_init_.py)

Cotents in in AppData\Local\anaconda3\Lib\site-packages\guardrails\hub_init_.py


# Should contain imports for all validators
# Will be auto-populated by the installation script

from guardrails_grhub_regex_match import RegexMatch
from guardrails_grhub_competitor_check import CompetitorCheck

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