# MissingDependencyException, FileConversionException and UnsupportedFormatException

> "File conversion failed after 1 attempts" hides the real cause on the next line. How to read it, which extra each converter needs, what "not supported" means.

Source: https://markitdown.dev/errors/missing-dependency/ · Updated 2026-11-15·Upstream source ↗

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:
> 
> ```bash
> pip install "markitdown[pdf]"
> ```
> 
> (Use `docx`, `pptx` or `xlsx` for those files, or `all` for everything.) For the other two names jump to [`FileConversionException`](#fileconversionexception) and [`UnsupportedFormatException`](#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](https://markitdown.dev/data/converter-extras.csv), [nested-causes.csv](https://markitdown.dev/data/nested-causes.csv), [unsupported-types.csv](https://markitdown.dev/data/unsupported-types.csv), [echoed-types.csv](https://markitdown.dev/data/echoed-types.csv)

## Read the message from the bottom up

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

```console
$ 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.
```

*markitdown 0.1.9 · Ubuntu 24.04 · bare install · 2026-11-15*

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](#missingdependencyexception) |
| `FileConversionException` | A converter tried and failed for the reason on the next line | [Read the attempt line](#fileconversionexception) |
| `UnsupportedFormatException` | No converter attempted the file | [Check the file type](#unsupportedformatexception) |

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](https://markitdown.dev/install/extras/) 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
| 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 | `pdf` | none |
| `PptxConverter` | .pptx | `pptx` | none |
| `XlsConverter` | .xls | `xls` | none |
| `XlsxConverter` | .xlsx | `xlsx` | none |

*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](https://markitdown.dev/errors/ffmpeg/)).

### What works with no extras at all

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

```bash
python check_installation.py samples
```

Types the bare package converts
| Converter | File 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](https://markitdown.dev/downloads/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:

```console
$ pip install --dry-run markitdown[all]
zsh:1: no matches found: markitdown[all]
```

*markitdown 0.1.9 (pip) · macOS 26 (arm64) · zsh 5.9 (CI) · 2026-11-15*

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](https://markitdown.dev/install/).

### 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](https://markitdown.dev/mcp/)).

## `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 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. |

*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](https://markitdown.dev/errors/).

## `UnsupportedFormatException`: nothing can read this file type

### The message

```console
$ 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.
```

*markitdown 0.1.9 · Linux · markitdown 0.1.9 (all extras) · 2026-11-15*

"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
| Extension | Result |
| --- | --- |
| `.bmp` | UnsupportedFormatException |
| `.doc` | UnsupportedFormatException |
| `.gif` | UnsupportedFormatException |
| `.odp` | UnsupportedFormatException |
| `.ods` | UnsupportedFormatException |
| `.odt` | UnsupportedFormatException |
| `.ppt` | UnsupportedFormatException |
| `.tiff` | UnsupportedFormatException |
| `.webp` | UnsupportedFormatException |

*Extensions with no converter in 0.1.9 Source: Test T05 · unsupported-types.csv · Download CSV*

See [the formats page](https://markitdown.dev/formats/) 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:

**Extension hint**

```bash
markitdown -x .csv < data.csv
```

**MIME type hint**

```bash
markitdown -m text/csv < data.csv
```

The same hint exists in the Python API ([Python API page](https://markitdown.dev/python-api/)); the CLI flags are on [the CLI page](https://markitdown.dev/cli/).

## 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
| 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 |

*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:

```python
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](https://markitdown.dev/evidence/snippets/api-exceptions-missing-extra/result.json)

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

```python
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](https://markitdown.dev/evidence/snippets/api-exceptions-unsupported/result.json)

And every other failure lists which converter failed and why:

```python
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](https://markitdown.dev/evidence/snippets/api-exceptions-failed/result.json)

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

## Check what your installation can convert

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

## Related

- [Extras and install size](https://markitdown.dev/install/extras/): Every extra, what it installs and how big it is.
- [Supported formats](https://markitdown.dev/formats/): The tested support matrix for every file type.
- [Python API guide](https://markitdown.dev/python-api/): Handling these exceptions in your own code.
- [Error reference](https://markitdown.dev/errors/): Every other MarkItDown error.
- [Install MarkItDown](https://markitdown.dev/install/): Install routes and the quoting that avoids a second error.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
