netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.34k stars 1.09k forks source link

[BUG] 5.17最新python分之版本安装报错 #341

Open weigong1983 opened 3 months ago

weigong1983 commented 3 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

安装如下步骤: conda create -n qanything-python python=3.10 conda activate qanything-python git clone -b qanything-python https://github.com/netease-youdao/QAnything.git cd QAnything pip install -r requirements.txt

1、安装依赖报错: ERROR: Could not find a version that satisfies the requirement mistune-3.0.2 (from versions: none) ERROR: No matching distribution found for mistune-3.0.2

2、bash scripts/run_for_7B_in_Linux_or_WSL.sh 报错 ModuleNotFoundError: No module named 'qanything_kernel.utils.loader.pdf_to_markdown.core.layout.table_rec.lib.models'

期望行为 | Expected Behavior

正常安装

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA: 12.1
- docker:
- docker-compose:
- NVIDIA GPU:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

1、安装依赖报错: ERROR: Could not find a version that satisfies the requirement mistune-3.0.2 (from versions: none) ERROR: No matching distribution found for mistune-3.0.2

2、bash scripts/run_for_7B_in_Linux_or_WSL.sh 报错 ModuleNotFoundError: No module named 'qanything_kernel.utils.loader.pdf_to_markdown.core.layout.table_rec.lib.models'

复现方法 | Steps To Reproduce

按照教程安装: conda create -n qanything-python python=3.10 conda activate qanything-python git clone -b qanything-python https://github.com/netease-youdao/QAnything.git cd QAnything pip install -r requirements.txt

备注 | Anything else?

No response

Qin-xb commented 3 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • [x] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • [x] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

安装如下步骤: conda create -n qanything-python python=3.10 conda activate qanything-python git clone -b qanything-python https://github.com/netease-youdao/QAnything.git cd QAnything pip install -r requirements.txt

1、安装依赖报错: ERROR: Could not find a version that satisfies the requirement mistune-3.0.2 (from versions: none) ERROR: No matching distribution found for mistune-3.0.2

2、bash scripts/run_for_7B_in_Linux_or_WSL.sh 报错 ModuleNotFoundError: No module named 'qanything_kernel.utils.loader.pdf_to_markdown.core.layout.table_rec.lib.models'

期望行为 | Expected Behavior

正常安装

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA: 12.1
- docker:
- docker-compose:
- NVIDIA GPU:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

1、安装依赖报错: ERROR: Could not find a version that satisfies the requirement mistune-3.0.2 (from versions: none) ERROR: No matching distribution found for mistune-3.0.2

2、bash scripts/run_for_7B_in_Linux_or_WSL.sh 报错 ModuleNotFoundError: No module named 'qanything_kernel.utils.loader.pdf_to_markdown.core.layout.table_rec.lib.models'

复现方法 | Steps To Reproduce

按照教程安装: conda create -n qanything-python python=3.10 conda activate qanything-python git clone -b qanything-python https://github.com/netease-youdao/QAnything.git cd QAnything pip install -r requirements.txt

备注 | Anything else?

No response

您好,这个问题解决了吗,同样的问题

weigong1983 commented 3 months ago

qanything_kernel.utils.loader.pdf_to_markdown.core.layout.table_rec.lib.models 看来是提交这漏上传了models目录的代码

xixihahaliu commented 3 months ago

@weigong1983 @Qin-xb @weigong1983 已解决,请pull后再试试

qgywzx commented 3 months ago

qanything-python分支缺少依赖,按照完依赖之后,启动出现如下报错:[HUQIE]:Faild to build trie, /QAnything/qanything_kernel/utils/loader/pdf_to_markdown/checkpoints/nlp/huqie.txt [Errno 2] No such file or directory: '/QAnything/qanything_kernel/utils/loader/pdf_to_markdown/checkpoints/nlp/huqie.txt'

xixihahaliu commented 3 months ago

@qgywzx 已修复,请重试

sophia20240527 commented 3 months ago

我使用的是QAnything-develop_for_v1.3.1,运行也是报错:[HUQIE]:Faild to build trie, /QAnything/qanything_kernel/utils/loader/pdf_to_markdown/checkpoints/nlp/huqie.txt [Errno 2] No such file or directory: '/QAnything/qanything_kernel/utils/loader/pdf_to_markdown/checkpoints/nlp/huqie.txt',请问@xixihahaliu 老师,这个修复代码再哪里呢?

markma0617 commented 2 months ago

目前仍然存在/huqie.txt找不到的问题

fi5ee commented 2 months ago

目前仍然存在/huqie.txt找不到的问题

把pdf解析的模型放在找不到文件的目录上就可以了,具体可以看一下他在5月27的commit或者python指南的pdf那一块

zeliang3 commented 3 weeks ago

目前仍然存在/huqie.txt找不到的问题, 我去代码去翻了翻也没翻到 朋友

目前仍然存在/huqie.txt找不到的问题

把pdf解析的模型放在找不到文件的目录上就可以了,具体可以看一下他在5月27的commit或者python指南的pdf那一块

junsansi commented 2 weeks ago

目前仍然存在/huqie.txt找不到的问题, 我去代码去翻了翻也没翻到 朋友

目前仍然存在/huqie.txt找不到的问题

把pdf解析的模型放在找不到文件的目录上就可以了,具体可以看一下他在5月27的commit或者python指南的pdf那一块

also meet the same problem, can't find huqie.txt in local and github. did u already solve this problem buddy?

junsansi commented 2 weeks ago

目前仍然存在/huqie.txt找不到的问题, 我去代码去翻了翻也没翻到 朋友

目前仍然存在/huqie.txt找不到的问题

把pdf解析的模型放在找不到文件的目录上就可以了,具体可以看一下他在5月27的commit或者python指南的pdf那一块

also meet the same problem, can't find huqie.txt in local and github. did u already solve this problem buddy?

I tried to download the huqie.txt file on huggingface, seems it worked. URL: https://huggingface.co/InfiniFlow/huqie/tree/main