rocketry icon indicating copy to clipboard operation
rocketry copied to clipboard

pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead

Open yosephmi opened this issue 1 year ago • 4 comments

Describe the bug When importing: from from rocketry import Rocketry receiving bug:

 raise PydanticUserError('`const` is removed, use `Literal` instead', code='removed-kwargs')
pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead

For further information visit https://errors.pydantic.dev/2.4/u/removed-kwargs

To Reproduce Steps to reproduce the behavior.

Expected behavior Import to succeed

  • OS: Windows
  • Python version 3.9.10

yosephmi avatar Nov 07 '23 15:11 yosephmi

also faced with the same issue, the only workaround that works for me is to downgrade pedantic lib to version before 2.0 (1.10.13 for instance)

yurii-olshanetskyi avatar Nov 07 '23 17:11 yurii-olshanetskyi

duplicate issue #210

sehraramiz avatar Nov 11 '23 12:11 sehraramiz

Ill just drop this line here for the nexone looking into this issue:

[tool.poetry.dependencies]
redbird = { git = "https://github.com/ManiMozaffar/red-bird.git", branch = "v2_but_v1" }

zakkg3 avatar Feb 28 '24 10:02 zakkg3

降低版本,使用pip install pydantic==1.10.9

niupengtao avatar May 14 '24 03:05 niupengtao