Skip to content

[bug] ModuleNotFoundError: No module named 'guardrails_grhub_toxic_language' #1271

Open
@Jeferson100

Description

@Jeferson100

Describe the bug

When attempting to start the Guardrails AI server using the guardrails configure command, the process fails with a ModuleNotFoundError: No module named 'guardrails_grhub_toxic_language'.

Important Observation: This behavior has been reproduced only in version guardrails-ai==0.6.6. When attempting the installation and execution with version guardrails-ai==0.6.5, the process works as expected, without the ModuleNotFoundError occurring.

Environment:

implementation = CPython
uv = 0.5.20
version_info = 3.12.0
include-system-site-packages = false
prompt = Implementando_Guardrails
Installed via: uv pip install -r requirements.txt

Steps to Reproduce:

1.Created a clean virtual environment

2.Installed packages using requirements.txt (successfully):

guardrails-api-client>=0.4.0a1
guardrails-ai==0.6.6
openai
groq
langchain_groq
langchain
langchain_community

Observed Error:

When I run the guardrails configure configure in the terminal, the following error occurs:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\jefer\Documents\Ciencia-de-dados\LLMs\Implementando_Guardrails\.venv\Scripts\guardrails.exe\__main__.py", line 4, in <module>
  File "C:\Users\jefer\Documents\Ciencia-de-dados\LLMs\Implementando_Guardrails\.venv\Lib\site-packages\guardrails\__init__.py", line 12, in <module>
    from guardrails.hub.install import install
  File "C:\Users\jefer\Documents\Ciencia-de-dados\LLMs\Implementando_Guardrails\.venv\Lib\site-packages\guardrails\hub\__init__.py", line 5, in <module>
    from guardrails_grhub_profanity_free import ProfanityFree
ModuleNotFoundError: No module named 'guardrails_grhub_profanity_free'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions