Giter VIP home page Giter VIP logo

Comments (6)

jojogh avatar jojogh commented on May 17, 2024 2

After I set python env, I use commands cli, the return is below, is that means I need to start some related ES service?
!python /content/ragflow/deepdoc/vision/t_ocr.py --inputs /content/inputs --outputs /content/outputs
Traceback (most recent call last):
File "/content/ragflow/deepdoc/vision/t_ocr.py", line 14, in
from deepdoc.vision.seeit import draw_box
File "/content/ragflow/deepdoc/vision/init.py", line 5, in
from .table_structure_recognizer import TableStructureRecognizer
File "/content/ragflow/deepdoc/vision/table_structure_recognizer.py", line 22, in
from rag.nlp import huqie
File "/content/ragflow/rag/nlp/init.py", line 4, in
from rag.utils import num_tokens_from_string
File "/content/ragflow/rag/utils/init.py", line 19, in
from .es_conn import ELASTICSEARCH
File "/content/ragflow/rag/utils/es_conn.py", line 456, in
ELASTICSEARCH = HuEs()
File "/content/ragflow/rag/utils/init.py", line 12, in _singleton
instances[key] = cls(*args, **kw)
File "/content/ragflow/rag/utils/es_conn.py", line 23, in init
raise Exception("Can't connect to ES cluster")
Exception: Can't connect to ES cluster

from ragflow.

DuckY-Y avatar DuckY-Y commented on May 17, 2024 1

bump

from ragflow.

KevinHuSh avatar KevinHuSh commented on May 17, 2024

Thanks for following!

You need to set environment variable PYTHON PATH=path/to/ragflow

from ragflow.

jojogh avatar jojogh commented on May 17, 2024

Many thanks!

from ragflow.

ThanhHung2112 avatar ThanhHung2112 commented on May 17, 2024

Same issue here :<< really need support

from ragflow.

jimmylevell avatar jimmylevell commented on May 17, 2024

Using the following lines within Google Colab I receive the same error as @jojogh

!git clone https://github.com/infiniflow/ragflow.git
%cd ragflow

# Based on: https://github.com/infiniflow/ragflow/issues/220
!sudo -H pip install --ignore-installed -U blinker
%pip install -r requirements.txt

# Based on: https://github.com/infiniflow/ragflow/issues/222
%set_env PYTHONPATH=/content/ragflow

!python deepdoc/vision/t_ocr.py --inputs /content/inputs --outputs /content/outputs

Curious to know if deepdoc can be executed independently of ragflow or if it requires a running instance of it.

Thank you in advanced for any further insights.

from ragflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.