chatglm.cpp icon indicating copy to clipboard operation
chatglm.cpp copied to clipboard

更新后运行报错:No module named 'pydantic._internal'

Open wizardbyron opened this issue 1 year ago • 4 comments

运行

MODEL=../chatglm3-ggml.bin uvicorn chatglm_cpp.langchain_api:app --host 127.0.0.1 --port 8000

报错:No module named 'pydantic._internal' 是不是要指定某些 package 的版本?

wizardbyron avatar Dec 20 '23 06:12 wizardbyron

需要升级fastapi版本到0.105.0,连带着会升级pydantic版本到2.5.2,pydantic_core版本2.14.5,pydantic-settings 2.1.0。

Lance201314 avatar Dec 22 '23 00:12 Lance201314

https://github.com/li-plus/chatglm.cpp/issues/233 已解决,Close

wizardbyron avatar Dec 26 '23 03:12 wizardbyron

@wizardbyron how do you resolve it ? Thanks

x4080 avatar Dec 28 '23 22:12 x4080

@wizardbyron how do you resolve it ? Thanks

Upgrade fastapi, but this issue happens again.

wizardbyron avatar Jan 11 '24 08:01 wizardbyron