Skip to content

Installed hub validators import error. #1350

@farzbood

Description

@farzbood

Hi,
I've installed the guardrails-ai 0.6.7 following the instructions in the documentation configure the package and install two validators (profanity_free, toxic_language) as instructed in the Sample App from the hub successfully, but running the code, raised the following Import error:

Traceback (most recent call last):
File "d:\pyprojects\LLMprjs\Haystack\guardrails-webui\simple_chat_guard.py", line 1, in
from guardrails import Guard, docs_utils
File "D:\pyprojects\LLMprjs\Haystack.venv\Lib\site-packages\guardrails_init_.py", line 12, in
from guardrails.hub.install import install
File "D:\pyprojects\LLMprjs\Haystack.venv\Lib\site-packages\guardrails\hub_init_.py", line 4, in
from guardrails_grhub_toxic_language import ToxicLanguage
ModuleNotFoundError: No module named 'guardrails_grhub_toxic_language'

My dev environment:

O.S: Win10 22H2 x86_64
Python: 3.13.9 (uv .venv)
IDE: VSCode Version: 1.105.1

Originally posted by @farzbood in #1305

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