Skip to content

[bug] Cannot import 'GibberishText' from 'guardrails.hub' #1232

@RoyKulik

Description

@RoyKulik

Describe the bug
A clear and concise description of what the bug is.
ImportError: cannot import name 'RegexMatch' from 'guardrails.hub'

Even though installation from hub successful.
I see the init.py script is empty, the comments suggests that maybe it should have imports.

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

To Reproduce
Steps to reproduce the behavior:

  1. Im using MacOs and Python 3.12.1
  2. Starting empty pip venv
  3. installing guardrails-ai (tried both 0.6.3 and 0.6)

Expected behavior
Expected valid import

Library version:
Version 0.6.3

Additional context
I have no Idea why this fails for ANY installation from the hub -
the import always fails.

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