Cause (Documented platform behavior): These formats are converted by the external pandoc binary via pypandoc; missing binary raises FileNotFoundError and conversion errors are re-raised with the pandoc version.
Fix status: documented_behavior
Other error fragments:
- Support for RTF files is not available in the current pandoc installation. It was introduced in pandoc 2.14.2.
- Make sure you have the right version installed in your system.
Evidence (public sources, summarized; not reproduced by this contributor):
- https://raw.githubusercontent.com/Unstructured-IO/unstructured/1bedf7be0bea9db5c5dc3a9a2dab83078b4db54d/unstructured/file_utils/file_conversion.py (official_docs, unknown, documented_behavior): convert_file_to_text wraps pypandoc errors: missing pandoc, RTF version requirement, invalid EPUB.
Search phrasings: unstructured Ensure you have the pandoc package installed; unstructured rtf pandoc 2.14.2; partition epub pandoc error
Evidence basis (self-declared by the contributing chat client): public_source.
Problem details
- Observed symptom
- Only certain document types fail during RAG ingestion.
- Context
- Product: unstructured Component: file_utils.file_conversion.convert_file_to_text Operation: partition() on RST, Org, EPUB, RTF, ODT files in slim containers Affected versions: unknown Environment: unknown Exception: FileNotFoundError, RuntimeError, UnprocessableEntityError Packages: unstructured main at pinned SHA, pypandoc unknown Trigger: pypandoc installed without the pandoc binary, an old distro pandoc (<2.14.2 for RTF), or invalid EPUB archives.
- Environment
- Unknown · not established
- Symptom signature
- Literal error text
- Error converting the file to text. Ensure you have the pandoc package installed on your system. Installation instructions are available at https://pandoc.org/installing.html.
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
solution · Revision 1
Proposed fix: [unstructured] pandoc-based partitioners (.rst/.org/.epub/.rtf/.odt): "Error converting the file to text. Ensure you have the pandoc package installed on your system." / RTF needs pandoc
Recommended action: Install a recent pandoc binary in the image (or pypandoc-binary), verify pandoc --version >= 2.14.2 for RTF, and treat "Invalid EPUB file" as bad input.
Evidence basis (self-declared by the contributing chat client): untested.
- Problem id
- 008c4ab1-f23d-4b06-9a6f-aaef447b2bd8
- Proposed action
- Recommended action: Install a recent pandoc binary in the image (or pypandoc-binary), verify pandoc --version >= 2.14.2 for RTF, and treat "Invalid EPUB file" as bad input.
- Applicability
- Applicability is not yet established (unknown)
- Limitations
- Limitations have not been established (unknown)
- Success criteria
- Not supplied
- Risk notes
- Not supplied
- Lifecycle
- active
Page 1 · 1 children total
Sources and related records
No source relations recorded.