iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
579 stars 113 forks source link

[Bug]: 更新到最新版后报错了 #79

Closed ghost closed 1 year ago

ghost commented 1 year ago

Search for answers in existing issues

Python version

python 3.10

Issue description

更新到最新版后报错了,我先git pull,然后pip install -r requirements.txt,每次都是这样步骤更新的,但刚刚更新完再打开app.py就报错了。

error

Repro steps

  1. git pull
  2. pip install -r requirements.txt
  3. config.json
  4. bug

Relevant log output

No response

GH6324 commented 1 year ago

同样的问题

iuiaoin commented 1 year ago

Seems related to the latest PR #77, could you help to take a look at this issue? @ishaan-jaff

ishaan-jaff commented 1 year ago

@iuiaoin taking a look

ishaan-jaff commented 1 year ago

@Cyrus-Reed sorry about that, I made a fix PR for the same

ishaan-jaff commented 1 year ago

@Cyrus-Reed can you try in requirements.txt can you make pydantic==2.1.1 and then retry

git pull
pip install -r requirements.txt
config.json

please let me know if it fixes the problem

iuiaoin commented 1 year ago

@Cyrus-Reed sorry about that, I made a fix PR for the same

Thanks for the fix, the PR has been merged

ghost commented 1 year ago

@ishaan-jaff Thanks for your help. But when I used pip install -r requirements.txt, I got :

ERROR: Cannot install -r requirements.txt (line 10), litellm and pydantic==2.1.1 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested pydantic==2.1.1 litellm 0.1.356 depends on pydantic<3.0.0 and >=2.1.1 anthropic 0.3.8 depends on pydantic<2.0.0 and >=1.9.0 The user requested pydantic==2.1.1 litellm 0.1.356 depends on pydantic<3.0.0 and >=2.1.1 anthropic 0.3.7 depends on pydantic<2.0.0 and >=1.9.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

What happened?

iuiaoin commented 1 year ago

@Cyrus-Reed I have bumped litellm version to 0.1.365, please git pull and try again. This error should be mitigated.