Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.28k stars 108 forks source link

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

Open yosephmi opened 1 year ago

yosephmi commented 1 year ago

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

yurii-olshanetskyi commented 1 year ago

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)

sehraramiz commented 1 year ago

duplicate issue #210

zakkg3 commented 8 months ago

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" }
niupengtao commented 6 months ago

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

kulame commented 2 weeks ago

这个bug居然还没有修复....天啊