ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: macOS cannot upload pptx file

Open asking002 opened this issue 10 months ago • 3 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

完全按照项目里关于macos的镜像打包模式,进行镜像的部署。运行也没有报错,只是在知识库上传ppt格式文件时,浏览器报错:提示:500 1.pptx: No module named 'aspose'.

流程一,完全按照官方的来,报错。 git clone https://github.com/infiniflow/ragflow.git cd ragflow pip install uv uv run download_deps.py docker build -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .

流程二,去年有个issue也反应这个问题,当时说解决了。 https://github.com/infiniflow/ragflow/issues/3666 我下载了,其中的poetry.lock, poetry.toml, pyproject.toml, dockerfile四个文件,因为pyproject.toml的规则与master文件不一样,所以下载了dockerfile和poetry.toml,不然按流程一会报错。对镜像进行重建,结果还是同样的问题。

流程三,我看到最近的issue里提到macos的构建方式,又试了一遍,还是报错。 https://github.com/infiniflow/ragflow/issues/4916

git clone https://github.com/infiniflow/ragflow.git cd ragflow/ pip3 install huggingface_hub nltk python3 download_deps.py docker build -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build -f Dockerfile -t infiniflow/ragflow:nightly . docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .

虽然现阶段可以通过将pptx转pdf来进行替代,但还是想了解ppt文件如何能够上传的方案,谢谢。

Image

asking002 avatar Mar 14 '25 11:03 asking002

You might need to install aspose mannually. FYI

KevinHuSh avatar Mar 17 '25 02:03 KevinHuSh

Cannot install mannually. So far, for macOS's docker, maybe no way to intall aspose. check the core system in docker, show aarch64 GNU/Linux, and aspose doesn't provide the relavent version.

uname -a

Linux 056d415550f2 6.10.14-linuxkit #1 SMP Mon Feb 24 16:35:16 UTc 2025 aarch64 aarch64 aarch64 GNU/Linux

the version can be downloaded is not including aarch64 version. Aspose.Slides-24.12.0-py3-none-win_amd64.whl (72.1 MB 查看详情) Uploaded 2024年12月5日 Python 3 Windows x86-64 Aspose.Slides-24.12.0-py3-none-win32.whl (63.0 MB 查看详情) Uploaded 2024年12月5日 Python 3 Windows x86 Aspose.Slides-24.12.0-py3-none-manylinux1_x86_64.whl (102.4 MB 查看详情) Uploaded 2024年12月5日 Python 3 Aspose.Slides-24.12.0-py3-none-macosx_11_0_arm64.whl (68.9 MB 查看详情) Uploaded 2024年12月5日 Python 3 macOS 11.0+ ARM64 Aspose.Slides-24.12.0-py3-none-macosx_10_14_x86_64.whl (87.2 MB 查看详情) Uploaded 2024年12月5日 Python 3 macOS 10.14+ x86-64

asking002 avatar Mar 17 '25 04:03 asking002

uv pip install aspose-slides

x No solution found when resolving dependencies: -> Because all versions of aspose-slides have no wheels with a matching platform tag (e.g., manylinux_2_35_aarch64`) and you require aspose-slides, we can conclude that your requirements are unsatisfiable.

  hint: `aspose-slides` was found on https://mirrors.aliyun.com/pypi/simple, but not at the requested
  version (all versions of aspose-slides). A compatible version may be available on a subsequent index (e.g.,
  https://pypi.org/simple). By default, uv will only consider versions that are published on the first index
  that contains a given package, to avoid dependency confusion attacks. If all indexes are equally trusted, use
  `--index-strategy unsafe-best-match` to consider all versions from all indexes, regardless of the order in which
  they were defined.

  hint: Wheels are available for `aspose-slides` (v25.3.0) on the following platforms: `macosx_10_14_x86_64`,
  `macosx_11_0_arm64`

asking002 avatar Mar 17 '25 04:03 asking002