ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Fail to parse file.

Open hbsjmsjwj opened this issue 1 year ago • 4 comments

Describe your problem

Traceback (most recent call last): File "/ragflow/rag/svr/task_executor.py", line 177, in build cks = chunker.chunk(row["name"], binary=binary, from_page=row["from_page"], File "/ragflow/rag/app/book.py", line 75, in chunk sections, tbls = doc_parser( File "/ragflow/deepdoc/parser/docx_parser.py", line 114, in call self.doc = Document(fnm) if isinstance( File "/usr/local/lib/python3.10/dist-packages/docx/api.py", line 23, in Document document_part = Package.open(docx).main_document_part File "/usr/local/lib/python3.10/dist-packages/docx/opc/package.py", line 116, in open pkg_reader = PackageReader.from_file(pkg_file) File "/usr/local/lib/python3.10/dist-packages/docx/opc/pkgreader.py", line 22, in from_file phys_reader = PhysPkgReader(pkg_file) File "/usr/local/lib/python3.10/dist-packages/docx/opc/phys_pkg.py", line 21, in new raise PackageNotFoundError("Package not found at '%s'" % pkg_file) docx.opc.exceptions.PackageNotFoundError: Package not found at

hbsjmsjwj avatar Oct 11 '24 07:10 hbsjmsjwj

How do you install RAGFlow? From the error message: 'docx.opc.exceptions.PackageNotFoundError: Package not found at' It seems some Python packages are missing.

JinHai-CN avatar Oct 11 '24 07:10 JinHai-CN

By the way, we intend to create an international community, so we encourage using English for communication.

JinHai-CN avatar Oct 11 '24 07:10 JinHai-CN

I also encountered this problem。 I deployed it using docker, but I mapped the web directory and encountered this problem

hjkl950217 avatar Mar 07 '25 09:03 hjkl950217

Well, my problem is solved. . I just found a "system" under personal information, which can check the status of file engine and object storage. My object storage was reporting an error, and after I adjusted the deployment, the problem was solved

I also encountered this problem。 I deployed it using docker, but I mapped the web directory and encountered this problem

hjkl950217 avatar Mar 10 '25 07:03 hjkl950217