infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.87k stars 2.24k forks source link

[Bug:unable to install the dependencies (fasttext and pyicu) using Poetry #3236

Closed jdx2099 closed 1 week ago

jdx2099 commented 1 week ago

Is there an existing issue for the same bug?

Branch name

main

Commit ID

odff64f

Other environment information

OS type:Ubuntu 20.04

Actual behavior

When I was trying to launch service from source, I encountered a problem. I completely follow the readme file image I typed this command "~/.local/bin/poetry install --sync --no-root # install RAGFlow dependent python modules" to install the dependencies but it didn't completely succeed. The following is the error message.

=================================================================================

Note: This error originates from the build backend, and is likely not a problem with poetry but with fasttext (0.9.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "fasttext (==0.9.3)"'.

=================================================================================

=================================================================================

It seems that these two packages pyicu and fasttext can not be installed properly.

Expected behavior

No response

Steps to reproduce

follow the readme.md

Additional information

No response

yuzhichang commented 1 week ago

The gcc on Ubuntu 20.04 is too old to build fasttext and pyicu. Please upgrade to gcc-14, or use Ubuntu 24.04 instead.