chatchat-space / Langchain-Chatchat

Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Apache License 2.0
31.88k stars 5.56k forks source link

unsupported operand type(s) for |: 'type' and 'NoneType' #1736

Closed cherub666 closed 1 year ago

cherub666 commented 1 year ago

问题描述 / Problem Description 用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner.

python startup.py -a 之后出现 parent_run_id: UUID | None = None, tags: List[str] | None = None, TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

预期的结果 / Expected Result 应该正常通过

实际结果 / Actual Result 以上报错

环境信息

操作系统:Linux-5.4.119-19-0009.11-x86_64-with-glibc2.2.5. python版本:3.8.16 (default, Sep 22 2023, 13:02:38)

项目版本:v0.2.5 langchain版本:0.0.312. fastchat版本:0.2.29

当前使用的分词器:ChineseRecursiveTextSplitter 当前启动的LLM模型:['chatglm2-6b'] @ cuda nstantiator.py[line:21] - INFO: Created a temporary directory at /tmp/tmpboo0kslr instantiator.py[line:76] - INFO: Writing /tmp/tmpboo0kslr/_remote_module_non_scriptable.py {'device': 'cuda', 'host': '127.0.0.1', 'infer_turbo': 'vllm', 'model_path': '/data/svn/chatglm2-6b', 'port': 20002} 当前Embbedings模型: m3e-base @ cuda

HanqiaoZheng commented 8 months ago

看了另一个issues,可以试一下把python升到3.10