Skip to content

[Bug]: MinerU TypeError: 'int' object is not subscriptable #168

@wenyisheng

Description

@wenyisheng

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • I believe this is a legitimate bug, not just a question or feature request.

Describe the bug

RAG-Anything MinerU, 处理文档(https://arxiv.org/pdf/2601.12538)

EMBEDDING_MODEL=BAAI/bge-m3 , Docker Image ID: 310a4003dad9

报错日志如下:

INFO:raganything.parser:[MinerU] File "/usr/local/lib/python3.11/site-packages/transformers/generation/logits_process.py", line 926, in _get_ngrams

INFO:raganything.parser:[MinerU] prev_ngram_tuple = tuple(ngram[:-1])

INFO:raganything.parser:[MinerU] └ (151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 151643, 1516...

ERROR:raganything.parser:[MinerU] TypeError: 'int' object is not subscriptable

INFO:raganything.parser:[MinerU] -> Cannot close object, library is destroyed. This may cause a memory leak!

[KnowledgeInit] ERROR: ✗ Failed Wei 等 - 2026 - Agentic reasoning for large language models.pdf: Mineru command failed with return code 0: ["2026-01-23 10:01:24.589 | ERROR | mineru.cli.client:parse_doc:211 - 'int' object is not subscriptable", "TypeError: 'int' object is not subscriptable"]

INFO:raganything.parser:[MinerU] Command executed failed

ERROR: Mineru command failed: Mineru command failed with return code 0: ["2026-01-23 10:01:24.589 | ERROR | mineru.cli.client:parse_doc:211 - 'int' object is not subscriptable", "TypeError: 'int' object is not subscriptable"]

[KnowledgeInit] INFO: Checking for leftover parser output directories...

[KnowledgeInit] PROGRESS: [kb_upload_20260123_094850_ef8642d9] Successfully processed 0 files!

[Knowledge] SUCCESS: [kb_upload_20260123_094850_ef8642d9] Processed 0 files to KB 'Agent'

Steps to reproduce

No response

Expected Behavior

No response

Related Module

Dashboard

Configuration Used

No response

Logs and screenshots

No response

Additional Information

  • DeepTutor Version:
  • Operating System:
  • Python Version:
  • Node.js Version:
  • Browser (if applicable):
  • Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions