Errors

MissingDependencyException, FileConversionException and UnsupportedFormatException

Updated 2026-11-15·Upstream source ↗
Markdown view

MarkItDown has exactly three exceptions of its own for failed conversions. One means "install an extra", one means "a converter tried and failed for a reason named on the next line", and one means "nothing here can read this file type". The fix for the first is one command.

Short answer

If the traceback contains …Converter threw MissingDependencyException, install the extra the message names, then run the command again:

Command
pip install "markitdown[pdf]"

(Use docx, pptx or xlsx for those files, or all for everything.) For the other two names jump to FileConversionException and UnsupportedFormatException.

Tested with markitdown 0.1.9 · Python 3.10 to 3.14 · Ubuntu 24.04, Windows and macOS runners · bare install and [all] · 2026-11-15 · evidence: converter-extras.csv, nested-causes.csv, unsupported-types.csv, echoed-types.csv

Read the message from the bottom up

This is the real output of the bare package converting a PDF:

markitdown 0.1.9 · Ubuntu 24.04 · bare install · 2026-11-15
$ markitdown pdf-text.pdf
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:
 - PdfConverter threw MissingDependencyException with message: PdfConverter recognized the input as a potential .pdf file, but the dependencies needed to read .pdf files have not been installed. To resolve this error, include the optional dependency [pdf] or [all] when installing MarkItDown. For example:

* pip install 'markitdown[pdf]'
* pip install 'markitdown[all]'
* pip install 'markitdown[pdf, ...]'
* etc.

raw log · base package, no extras

Four parts, from top to bottom: the Python frames (skip them); the wrapper line FileConversionException: File conversion failed after 1 attempts:; the attempt line - PdfConverter threw MissingDependencyException with message: …, which names the converter and the exception it raised; and the instructions MarkItDown prints itself, listing the extra to install. The wrapper is never the cause. Read the attempt line.

Which of the three do you have?

NameWhat happenedWhat to do
MissingDependencyExceptionA converter recognised the file but the library it needs is not installedInstall the extra
FileConversionExceptionA converter tried and failed for the reason on the next lineRead the attempt line
UnsupportedFormatExceptionNo converter attempted the fileCheck the file type

All three derive from one base exception. A missing dependency is reported inside a file-conversion failure, which is why the two names appear together.

MissingDependencyException: the format needs an extra

Why a plain install cannot read PDFs or Office files

By design the base package contains no format libraries; each family of formats is an optional extra (the extras page has the table and the sizes).

Which extra for which converter

Converter name as it appears in the message, file types, and the extra that provides it
ConverterFile typesExtraSystem tool also needed
CsvConverter.csvnone (included)none
EpubConverter.epubnone (included)none
HtmlConverter.htmlnone (included)none
ImageConverter.jpg, .pngnone (included)ExifTool for metadata
IpynbConverter.ipynbnone (included)none
PlainTextConverter.md, .txt, .xmlnone (included)none
ZipConverter.zipnone (included)none
AudioConverter.m4a, .mp3audio-transcriptionffmpeg
AudioConverter.wavaudio-transcriptionffmpeg not needed for WAV
DocxConverter.docxdocxnone
OutlookMsgConverter.msgoutlooknone
PdfConverter.pdfpdfnone
PptxConverter.pptxpptxnone
XlsConverter.xlsxlsnone
XlsxConverter.xlsxxlsxnone
Converter name as it appears in the message, file types, and the extra that provides it Source: Test T05, 113 files, markitdown 0.1.9 · converter-extras.csv · Download CSV

The last column matters: pip cannot install ffmpeg or ExifTool (ffmpeg page).

What works with no extras at all

We converted one sample of each type with the bare package, then with everything installed:

Command
python check_installation.py samples
Types the bare package converts
ConverterFile types
CsvConverter.csv
EpubConverter.epub
HtmlConverter.html
ImageConverter.jpg, .png
IpynbConverter.ipynb
PlainTextConverter.md, .txt, .xml
ZipConverter.zip
Types the bare package converts Source: Test T05 · converter-extras.csv · Download CSV

The script is check_installation.py; it prints one line per format. Bare install: HTML, CSV, EPUB, ZIP and notebooks yes; PDF, Word, PowerPoint and Excel no, each with the converter that wants an extra. With [all]: all of those yes, and the old .doc and GIF still no.

Installing the extra without a new error

Quote the requirement. In zsh an unquoted bracket is the next error you meet:

markitdown 0.1.9 (pip) · macOS 26 (arm64) · zsh 5.9 (CI) · 2026-11-15
$ pip install --dry-run markitdown[all]
zsh:1: no matches found: markitdown[all]

raw log · unquoted brackets

The quoted form above worked in every shell we tested (PowerShell, Command Prompt, bash, zsh, fish). Install into the same environment the command runs from: after pip install into one Python, a command from another still raises the same exception. For tool installs (uv, pipx) reinstall with the extras through the command builder.

Cases that surprise people

A ZIP whose members need extras raises nothing: it silently leaves those members out. Our bundle.zip holds a Word file plus four others; the bare install returned sections for the other four, [all] returned all five:

(The log is evidence/T38/zip-members.log.) So "it converted" does not always mean "everything converted": check the output. The MCP server always installs everything (MCP page).

FileConversionException: a converter tried and failed

The attempt line is the diagnosis. These are the nested causes we reproduced, each as printed:

Attempt lines we reproduced under FileConversionException
Attempt lineWhat it means
DocxConverter threw MissingDependencyException with message: DocxConverter recognized the input as a potential .docx file, but the dependencThe base package does not include readers for PDF, Word, Excel, PowerPoint or Outlook files
AudioConverter threw FileNotFoundError with message: [Errno 2] No such file or directory: 'ffprobe'MP3 and M4A are decoded with ffmpeg; without it the conversion fails
PdfConverter threw PDFPasswordIncorrect with message:The PDF is encrypted with a user password and the CLI and API have no password option.
DocxConverter threw IndexError with message: pop from empty listA field-end mark with no matching field-begin mark in the document made the DOCX reader (mammoth before 1.12.2) pop from an empty list.
PdfConverter threw ValueError with message: not enough values to unpack (expected 4, got 2)A PDF whose form object has a malformed bounding box (two numbers instead of four) crashes the PDF reader.
ImageConverter threw RuntimeError with message: ExifTool version 12.16 is vulnerable to CVE-2021-22204. Please upgrade to version 12.24 or lMarkItDown refuses to run an ExifTool older than 12.24.
Attempt lines we reproduced under FileConversionException Source: Test T08, markitdown 0.1.5 to 0.1.9 · nested-causes.csv · Download CSV

Rows two and three are the cases where your file is the problem or the tool has no option for it: an encrypted PDF has no password option on the command line or in the API. Other nested causes are on the error index.

UnsupportedFormatException: nothing can read this file type

The message

markitdown 0.1.9 · Linux · markitdown 0.1.9 (all extras) · 2026-11-15
$ markitdown report.doc
markitdown._exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported.

raw log

"No converter attempted a conversion" means every converter looked at the file and none accepted it.

Types that raise it

Extensions with no converter in 0.1.9
ExtensionResult
.bmpUnsupportedFormatException
.docUnsupportedFormatException
.gifUnsupportedFormatException
.odpUnsupportedFormatException
.odsUnsupportedFormatException
.odtUnsupportedFormatException
.pptUnsupportedFormatException
.tiffUnsupportedFormatException
.webpUnsupportedFormatException
Extensions with no converter in 0.1.9 Source: Test T05 · unsupported-types.csv · Download CSV

See the formats page for what to do with each type; convert them to a supported type first.

When the type is supported but MarkItDown cannot tell

Piped input has no file name, so MarkItDown guesses. In our runs a DOCX, a PDF and a CSV piped in with no hint were all recognised, and these hints also worked:

Command
markitdown -x .csv < data.csv

The same hint exists in the Python API (Python API page); the CLI flags are on the CLI page.

No exception, but not converted either

The other side of "unsupported": types that a text converter accepts and prints back unchanged, with exit code 0.

Extensions that are echoed back instead of converted
ExtensionWhat you get
.emlexit code 0; the file's own text is printed back unchanged
.jsonexit code 0; the file's own text is printed back unchanged
.jsonlexit code 0; the file's own text is printed back unchanged
.pyexit code 0; the file's own text is printed back unchanged
.rtfexit code 0; the file's own text is printed back unchanged
.svgexit code 0; the file's own text is printed back unchanged
.tomlexit code 0; the file's own text is printed back unchanged
.tsvexit code 0; the file's own text is printed back unchanged
.yamlexit code 0; the file's own text is printed back unchanged
Extensions that are echoed back instead of converted Source: Test T05 · echoed-types.csv · Download CSV

An RTF file, for example, comes out as its own control codes. Treat "no error" as "no error", not as "converted well".

Catching these exceptions in your own code

Import the three names from the package's top level. The missing-dependency case sits inside the file-conversion failure, so look at the attempts:

Pythonapi-exceptions-missing-extra.py
from markitdown import MarkItDown, FileConversionException, MissingDependencyException

try:
    MarkItDown().convert("samples/pdf-text.pdf")
except FileConversionException as e:
    inner = e.attempts[0].exc_info[1]
    print("outer:", type(e).__name__)
    print("inner:", type(inner).__name__, "| is MissingDependencyException:", isinstance(inner, MissingDependencyException))
    print(str(inner)[:240])
Output · markitdown 0.1.9 · Python 3.13.18 · 2026-11-15
outer: FileConversionException
inner: MissingDependencyException | is MissingDependencyException: True
PdfConverter recognized the input as a potential .pdf file, but the dependencies needed to read .pdf files have not been installed. To resolve this error, include the optional dependency [pdf] or [all] when installing MarkItDown. For exampl

captured result

An unsupported type raises its own exception, which a batch job can treat as "skip":

Pythonapi-exceptions-unsupported.py
from markitdown import MarkItDown, UnsupportedFormatException

try:
    MarkItDown().convert("samples/unsupported.gif")
except UnsupportedFormatException as e:
    print(type(e).__name__)
    print(str(e)[:200])
Output · markitdown 0.1.9 · Python 3.13.18 · 2026-11-15
UnsupportedFormatException
Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported.

captured result

And every other failure lists which converter failed and why:

Pythonapi-exceptions-failed.py
from markitdown import MarkItDown, FileConversionException

try:
    MarkItDown().convert("samples/pdf-encrypted.pdf")
except FileConversionException as e:
    print("message line:", str(e).splitlines()[0])
    for attempt in e.attempts:
        print("converter:", type(attempt.converter).__name__, "| exception:", attempt.exc_info[0].__name__)
Output · markitdown 0.1.9 · Python 3.13.18 · 2026-11-15
message line: File conversion failed after 1 attempts:
converter: PdfConverter | exception: PDFPasswordIncorrect

captured result

The command line prints the traceback and exits with code 1.

Check what your installation can convert

Run check_installation.py next to the sample files published on this site (for example bundle.zip and pdf-text.pdf; the script expects them in a folder named samples); it printed the table described in What works with no extras for our bare and full installs (logs evidence/T38/check-bare.log and check-all.log).