Errors
MissingDependencyException, FileConversionException and UnsupportedFormatException
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:
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 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?
| Name | What happened | What to do |
|---|---|---|
MissingDependencyException | A converter recognised the file but the library it needs is not installed | Install the extra |
FileConversionException | A converter tried and failed for the reason on the next line | Read the attempt line |
UnsupportedFormatException | No converter attempted the file | Check 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 | File types | Extra | System tool also needed |
|---|---|---|---|
CsvConverter | .csv | none (included) | none |
EpubConverter | .epub | none (included) | none |
HtmlConverter | .html | none (included) | none |
ImageConverter | .jpg, .png | none (included) | ExifTool for metadata |
IpynbConverter | .ipynb | none (included) | none |
PlainTextConverter | .md, .txt, .xml | none (included) | none |
ZipConverter | .zip | none (included) | none |
AudioConverter | .m4a, .mp3 | audio-transcription | ffmpeg |
AudioConverter | .wav | audio-transcription | ffmpeg not needed for WAV |
DocxConverter | .docx | docx | none |
OutlookMsgConverter | .msg | outlook | none |
PdfConverter | pdf | none | |
PptxConverter | .pptx | pptx | none |
XlsConverter | .xls | xls | none |
XlsxConverter | .xlsx | xlsx | none |
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:
python check_installation.py samples| Converter | File types |
|---|---|
CsvConverter | .csv |
EpubConverter | .epub |
HtmlConverter | .html |
ImageConverter | .jpg, .png |
IpynbConverter | .ipynb |
PlainTextConverter | .md, .txt, .xml |
ZipConverter | .zip |
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:
$ 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 line | What it means |
|---|---|
DocxConverter threw MissingDependencyException with message: DocxConverter recognized the input as a potential .docx file, but the dependenc | The 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 list | A 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 l | MarkItDown refuses to run an ExifTool older than 12.24. |
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 report.doc
markitdown._exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported. "No converter attempted a conversion" means every converter looked at the file and none accepted it.
Types that raise it
| Extension | Result |
|---|---|
.bmp | UnsupportedFormatException |
.doc | UnsupportedFormatException |
.gif | UnsupportedFormatException |
.odp | UnsupportedFormatException |
.ods | UnsupportedFormatException |
.odt | UnsupportedFormatException |
.ppt | UnsupportedFormatException |
.tiff | UnsupportedFormatException |
.webp | UnsupportedFormatException |
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:
markitdown -x .csv < data.csvmarkitdown -m text/csv < data.csvThe 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.
| Extension | What you get |
|---|---|
.eml | exit code 0; the file's own text is printed back unchanged |
.json | exit code 0; the file's own text is printed back unchanged |
.jsonl | exit code 0; the file's own text is printed back unchanged |
.py | exit code 0; the file's own text is printed back unchanged |
.rtf | exit code 0; the file's own text is printed back unchanged |
.svg | exit code 0; the file's own text is printed back unchanged |
.toml | exit code 0; the file's own text is printed back unchanged |
.tsv | exit code 0; the file's own text is printed back unchanged |
.yaml | exit code 0; the file's own text is printed back unchanged |
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:
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])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 An unsupported type raises its own exception, which a batch job can treat as "skip":
from markitdown import MarkItDown, UnsupportedFormatException
try:
MarkItDown().convert("samples/unsupported.gif")
except UnsupportedFormatException as e:
print(type(e).__name__)
print(str(e)[:200])UnsupportedFormatException
Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported. And every other failure lists which converter failed and why:
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__)message line: File conversion failed after 1 attempts:
converter: PdfConverter | exception: PDFPasswordIncorrect 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).