Skip to content

[bug]After successful install, configure fails with "TypeError: field() got an unexpected keyword argument 'alias'" #1268

Open
@lisack

Description

@lisack

Describe the bug
Apparently, something in the configuration is getting "alias" as a parameter, during the import of the cli

To Reproduce:

Successfully installed guardrails-ai-0.4.5. <-- last missive from installation
(base) Vantiqs-M1-Macbook-Pro:GuardRails lis$ guardrails configure. <-- next command, the rest is the output
Traceback (most recent call last):
File "/Users/lis/opt/miniconda3/bin/guardrails", line 5, in
from guardrails.cli import cli
File "/Users/lis/opt/miniconda3/lib/python3.8/site-packages/guardrails/init.py", line 3, in
from guardrails.guard import Guard
File "/Users/lis/opt/miniconda3/lib/python3.8/site-packages/guardrails/guard.py", line 26, in
from guardrails_api_client.models import (
File "/Users/lis/opt/miniconda3/lib/python3.8/site-packages/guardrails_api_client/init.py", line 3, in
from .client import AuthenticatedClient, Client
File "/Users/lis/opt/miniconda3/lib/python3.8/site-packages/guardrails_api_client/client.py", line 9, in
class Client:
File "/Users/lis/opt/miniconda3/lib/python3.8/site-packages/guardrails_api_client/client.py", line 38, in Client
_base_url: str = field(alias="base_url")
TypeError: field() got an unexpected keyword argument 'alias'

Expected behavior
not this, anyway

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