ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: ModuleNotFoundError: No module named 'jina'

Open xia-huang-411303 opened this issue 1 year ago • 4 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

main

Commit ID

None

Other environment information

windows10 + docker 4.30.0 (149282)
.env argument
RAGFLOW_VERSION=dev

Actual behavior

This is what happens when the docker deployment starts

Expected behavior

No response

Steps to reproduce

$ cd ragflow/docker
$ chmod +x ./entrypoint.sh
$ docker compose -f docker-compose-CN.yml up -d

Additional information

[WARNING] Load term.freq FAIL! [WARNING] [2024-08-01 07:05:14,989] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. [WARNING] [2024-08-01 07:05:14,989] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. Traceback (most recent call last): File "/ragflow/api/ragflow_server.py", line 26, in from api.apps import app File "/ragflow/api/apps/init.py", line 97, in client_urls_prefix = [ File "/ragflow/api/apps/init.py", line 98, in register_page(path) File "/ragflow/api/apps/init.py", line 84, in register_page spec.loader.exec_module(page) File "/ragflow/api/apps/api_app.py", line 27, in from api.db.services.dialog_service import DialogService, chat File "/ragflow/api/db/services/dialog_service.py", line 25, in from api.db.services.llm_service import LLMService, TenantLLMService, LLMBundle File "/ragflow/api/db/services/llm_service.py", line 18, in from rag.llm import EmbeddingModel, CvModel, ChatModel, RerankModel, Seq2txtModel File "/ragflow/rag/llm/init.py", line 17, in from .chat_model import * File "/ragflow/rag/llm/chat_model.py", line 31, in from rag.svr.jina_server import Prompt,Generation File "/ragflow/rag/svr/jina_server.py", line 1, in from jina import Deployment ModuleNotFoundError: No module named 'jina' [WARNING] [2024-08-01 07:05:21,979] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection.

xia-huang-411303 avatar Aug 01 '24 07:08 xia-huang-411303

log i posted is result of $ docker logs -f ragflow-server ragflow-server version: dev Last pushed 7 hours ago by infiniflow Digest 625a88f9666a

xia-huang-411303 avatar Aug 01 '24 07:08 xia-huang-411303

+1 image

death4444 avatar Aug 01 '24 08:08 death4444

@xia-huang-411303 thanks for you mention,it will be fixed soon

hangters avatar Aug 01 '24 08:08 hangters

+1 解决了吗?

ysf-gd avatar Aug 02 '24 01:08 ysf-gd

Same error.

kevinbaby0222 avatar Aug 02 '24 02:08 kevinbaby0222

Fixed.

KevinHuSh avatar Aug 02 '24 02:08 KevinHuSh

Fixed.

How did you fix it?

ysf-gd avatar Aug 02 '24 03:08 ysf-gd

I suggest changing 'RAGFLOW_VERSION=dev' in the './docker/.env 'file to' RAGFLOW_VERSION=latest ' Re-use docker compose deployment, issue resolved

xia-huang-411303 avatar Aug 02 '24 08:08 xia-huang-411303

I suggest changing 'RAGFLOW_VERSION=dev' in the './docker/.env 'file to' RAGFLOW_VERSION=latest ' Re-use docker compose deployment, issue resolved

thanks,this is right!

death4444 avatar Aug 12 '24 08:08 death4444