You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
________________________________
From: AlexNguyen124 ***@***.***>
Sent: Wednesday, August 16, 2023 12:05:59 PM
To: jiggy-ai/jiggybase ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [jiggy-ai/jiggybase] PydanticUserError('`const` is removed, use `Literal` instead', code='removed-kwargs') (Issue #2)
I thinks this is because pydantic v2 ships with Ubuntu 22.04 LTS whereas v1 ships with 20.04 LTS.
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATZOBNYBG44TI3MSQNA5LBTXVT4XPANCNFSM6AAAAAA3S2SXUA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
pydantic v2 is unsupported
PydanticUserError Traceback (most recent call last)
in <cell line: 5>()
3
4 get_ipython().system('pip install jiggybase')
----> 5 import jiggybase
6 import jiggybase.collection
7 import jiggybase.models
6 frames
/usr/local/lib/python3.10/dist-packages/pydantic/fields.py in Field(default, default_factory, alias, alias_priority, validation_alias, serialization_alias, title, description, examples, exclude, include, discriminator, json_schema_extra, frozen, validate_default, repr, init_var, kw_only, pattern, strict, gt, ge, lt, le, multiple_of, allow_inf_nan, max_digits, decimal_places, min_length, max_length, **extra)
747 const = extra.pop('const', None) # type: ignore
748 if const is not None:
--> 749 raise PydanticUserError('
const
is removed, useLiteral
instead', code='removed-kwargs')750
751 min_items = extra.pop('min_items', None) # type: ignore
PydanticUserError:
const
is removed, useLiteral
insteadFor further information visit https://errors.pydantic.dev/2.1.1/u/removed-kwargs
The text was updated successfully, but these errors were encountered: