Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yosephmi opened this issue Nov 7, 2023 · 5 comments
Open
Labels
bug Something isn't working

Comments

@yosephmi
Copy link

yosephmi commented Nov 7, 2023

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 yosephmi added the bug Something isn't working label Nov 7, 2023
@yurii-olshanetskyi
Copy link

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
Copy link

duplicate issue #210

@zakkg3
Copy link
Contributor

zakkg3 commented Feb 28, 2024

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
Copy link

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

@kulame
Copy link

kulame commented Nov 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants