rocketry
rocketry copied to clipboard
pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead
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
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)
duplicate issue #210
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" }
降低版本,使用pip install pydantic==1.10.9