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和fschat冲突 #4033

Open
china-gcg opened this issue May 16, 2024 · 4 comments
Open

[询问] 方舟豆包依赖pydantic和fschat冲突 #4033

china-gcg opened this issue May 16, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@china-gcg
Copy link

在更改使用方舟的调用方式,为了调用豆包,他更新调用了方式,导致使用pydantic,他要在2.x。但是由于项目的冲突依赖,会卡住
图片1
有没有大佬有建议

@china-gcg china-gcg added the bug Something isn't working label May 16, 2024
Copy link

dosubot bot commented May 16, 2024

To address the dependency conflict between Pydantic required by your project and the syntax error you're encountering, follow these steps:

  1. Resolve Dependency Conflict:

    • Update requirements_lite.txt to use Pydantic version 2.x by changing pydantic==1.10.13 to pydantic>=2.0.0. This change assumes backward compatibility with your current usage. Be cautious as this upgrade may impact other dependencies like fastapi and starlette, which rely on Pydantic for data validation and serialization.
  2. Fix "Unexpected EOF while parsing" Error:

    • This error usually indicates a missing parenthesis, bracket, quote, or incorrect indentation. Review your code for incomplete statements and ensure all structures are properly closed. Tools like flake8 or pylint can help identify syntax errors.

For the dependency conflict, consider the impact of upgrading Pydantic on your project, especially regarding fastapi and starlette. For the syntax error, without specific code, the advice is to check for common syntax issues or use a linter for more precise error identification.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@china-gcg
Copy link
Author

不用了,我自己解决了

@flyuuo9
Copy link

flyuuo9 commented May 30, 2024

@china-gcg 请问下如何解决的,方便分享一下吗?我想加openparse进来,也是依赖了pydantic 2

@china-gcg
Copy link
Author

china-gcg commented May 30, 2024 via email

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

2 participants