启动后端时,提示导入包错误了,完整信息:
Requirement already satisfied: mypy-extensions>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from typing-inspect>=0.4.0->dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.123->-r requirements.txt (line 5)) (1.0.0)
Traceback (most recent call last):
File "/app/chatdoc/server/main.py", line 3, in
from doc_util import Doc
File "/app/chatdoc/server/doc_util.py", line 9, in
from epub2txt import epub2txt
File "/usr/local/lib/python3.10/dist-packages/epub2txt/init.py", line 2, in
from .epub2txt import epub2txt
File "/usr/local/lib/python3.10/dist-packages/epub2txt/epub2txt.py", line 10, in
from collections import Iterable # < py38
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)
启动后端时,提示导入包错误了,完整信息: Requirement already satisfied: mypy-extensions>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from typing-inspect>=0.4.0->dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.123->-r requirements.txt (line 5)) (1.0.0) Traceback (most recent call last): File "/app/chatdoc/server/main.py", line 3, in
from doc_util import Doc
File "/app/chatdoc/server/doc_util.py", line 9, in
from epub2txt import epub2txt
File "/usr/local/lib/python3.10/dist-packages/epub2txt/init.py", line 2, in
from .epub2txt import epub2txt
File "/usr/local/lib/python3.10/dist-packages/epub2txt/epub2txt.py", line 10, in
from collections import Iterable # < py38
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)