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

[BUG] poetry源码启动,报无法导入DOC的错误 #4340

Open
morego123 opened this issue Jun 27, 2024 · 0 comments
Open

[BUG] poetry源码启动,报无法导入DOC的错误 #4340

morego123 opened this issue Jun 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@morego123
Copy link

(xx3) root@5478f1695181:/DDD/LLm/lang4/libs/chatchat-server# poetry run chatchat -a
Traceback (most recent call last):
File "", line 1, in
File "/opt/conda/envs/xx3/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/DDD/LLm/lang4/libs/chatchat-server/chatchat/startup.py", line 25, in
from fastapi import FastAPI
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/init.py", line 7, in
from .applications import FastAPI as FastAPI
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/applications.py", line 16, in
from fastapi import routing
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/routing.py", line 22, in
from fastapi import params
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/params.py", line 5, in
from fastapi.openapi.models import Example
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/openapi/models.py", line 4, in
from fastapi._compat import (
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/_compat.py", line 20, in
from fastapi.exceptions import RequestErrorModel
File "/opt/conda/envs/xx3/lib/python3.10/site-packages/fastapi/exceptions.py", line 6, in
from typing_extensions import Annotated, Doc # type: ignore [attr-defined]
ImportError: cannot import name 'Doc' from 'typing_extensions' (/opt/conda/envs/xx3/lib/python3.10/site-packages/typing_extensions.py)
(xx3) root@5478f1695181:/DDD/LLm/lang4/libs/chatchat-server#

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

1 participant