# MarkItDown error reference

> Paste a MarkItDown error or traceback and get the real cause. Every message reproduced on version 0.1.9, with fixes verified on Windows, macOS and Linux.

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

MarkItDown wraps most failures in one generic exception, so the first line you see is rarely the cause. This page lists every message we could reproduce (46 entries, 30 of them reproduced by us on version 0.1.9 or an older release), the real cause, and the fix we verified.

> **Short answer**
>
> Most reports are one of five things:
> 
> 1.  The command is not found after install: [`markitdown` is not recognized](https://markitdown.dev/errors/command-not-found/).
> 2.  An extra is missing: [`MissingDependencyException`](https://markitdown.dev/errors/missing-dependency/).
> 3.  Output is garbled or crashes on Windows: [`UnicodeEncodeError`](https://markitdown.dev/errors/unicodeencodeerror/).
> 4.  The file type is not supported, or is only echoed back: [`UnsupportedFormatException`](https://markitdown.dev/errors/missing-dependency/).
> 5.  The output is empty because the file is a scan or an image: [no error, wrong result](#cat-silent).

Tested with markitdown 0.1.9 · Python Windows Server 2025, macOS 26 (Apple Silicon and Intel), Ubuntu 24.04 · Python 3.8 to 3.15 · MarkItDown 0.0.1a5 to 0.1.9 (GitHub runners and a Linux lab) · 2026-11-15 · evidence: [errors.json](https://markitdown.dev/data/errors.json), [errors-index.csv](https://markitdown.dev/data/errors-index.csv), [10-pdf.log](https://markitdown.dev/evidence/T08/logs/10-pdf.log)

## Decode your error

Paste what you see. The decoder names the cause, shows the line it matched in your text, and gives the verified fix. Without JavaScript, use the list of all messages below.

Error Decoder

The decoder needs JavaScript. Without it, use the list of all messages below: each entry shows the literal message, the cause and the fix.

Paste an error message or a whole traceback

Your text stays in this page: nothing is uploaded or stored. Tracebacks contain file paths and user names, which is why.

 

46 messages · matching runs in your browser, nothing you paste is sent or stored · markitdown 0.1.9 · reproduced 2026-11-15

## How to read a MarkItDown traceback

Here is the real output of the bare package converting a PDF. Read it from the bottom up:

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

-   The long `File ".../site-packages/markitdown/..."` frames are Python's internals: **ignore them**.
-   `FileConversionException: File conversion failed after 1 attempts:` is a **wrapper**. It is never the cause.
-   The line after it, `- PdfConverter threw MissingDependencyException with message: …`, is **the cause**: it names the converter and the exception it raised.
-   The instructions MarkItDown prints itself (the last lines) usually say what to do.

## The five errors behind most reports

Among the 465 upstream issues we reviewed (`research/raw/github-issues-top.csv`), a rough title search finds 19 about encoding, 14 about dependencies or unsupported files, 8 about imports, 6 about the command not being found and 2 about ffmpeg; the ffmpeg thread is nevertheless one of the most commented.

- ['markitdown' is not recognized](https://markitdown.dev/errors/command-not-found/): The program is installed but your shell cannot find it: PATH, the wrong Python, or an inactive environment.
- [MissingDependencyException](https://markitdown.dev/errors/missing-dependency/): A file type needs an extra that was not installed.
- [UnicodeEncodeError on Windows](https://markitdown.dev/errors/unicodeencodeerror/): Saving with the shell's redirect loses characters; use -o.
- [Couldn't find ffmpeg or avconv](https://markitdown.dev/errors/ffmpeg/): A warning, not an error. Only MP3 and M4A need ffmpeg.

## All messages, by where they happen

Every card shows how sure we are: *Reproduced by us*, *Reproduced on an older release*, *Observed in CI*, *Reported, not reproduced by us* or *Not yet tested*.

### Installing and starting

Reproduced by us

### 'markitdown' is not recognized as an internal or external command, operable program or batch file.

The shell cannot find a program called markitdown. Either the script folder of the Python that installed it is not on PATH, the venv is not activated, or the install went to a Python that does not provide the command (Python 3.9 installs an empty placeholder).

Fix

-   Run python -m markitdown --version. If that works, only PATH is wrong.
-   Install with pipx or uv tool install so the command is placed on PATH for you.
-   Check the Python version: markitdown 0.1.x needs Python 3.10 to 3.14.

Fix · windows

-   Open a new terminal after installing; PATH changes do not reach terminals that were already open.

Affected: all releases · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/command-not-found/#cause-1) · [Upstream report](https://github.com/microsoft/markitdown/issues/204)

Reproduced by us

### The term 'source' is not recognized as a name of a cmdlet, function, script file, or executable program.

source .venv/bin/activate is bash syntax. On Windows the activation script lives in Scripts, not bin, and PowerShell runs Activate.ps1.

Fix · windows

-   PowerShell: .venv\\Scripts\\Activate.ps1
-   Command Prompt: .venv\\Scripts\\activate.bat

Affected: n/a (shell) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/install/windows/#activate) · [Upstream report](https://github.com/microsoft/markitdown/issues/2106)

Reproduced by us

### File ...\\v\\Scripts\\Activate.ps1 cannot be loaded because running scripts is disabled on this system.

The PowerShell execution policy (Restricted or AllSigned) blocks the unsigned activation script.

Fix · windows

-   For this window only: Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
-   Or skip activation and call the venv's Python: .venv\\Scripts\\python.exe -m markitdown file.docx

Affected: n/a (shell) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/install/windows/#activate) · [Upstream report](https://github.com/microsoft/markitdown/issues/2106)

Reproduced by us

### ImportError: cannot import name 'MarkItDown' from partially initialized module 'markitdown' (most likely due to a circular import)

Your own file is called markitdown.py (or sits in a folder called markitdown), so Python imports it instead of the library. The wording depends on the Python version: 3.10 to 3.12 say 'partially initialized module', 3.13 and later suggest renaming the file.

Fix

-   Rename the file (and delete its \_\_pycache\_\_ folder), then run again.
-   Check where Python found the module: python -c "import markitdown; print(markitdown.\_\_file\_\_)"

Affected: any · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/import-error/#file-named-markitdown) · [Upstream report](https://github.com/microsoft/markitdown/issues/8)

Reproduced by us

### ERROR: 'packages/markitdown\\\[all\\\]' is not a valid editable requirement. It should either be a path to a local project or a VCS URL

A requirement written for a Unix shell (with backslash-escaped brackets) was pasted into a shell that keeps the backslashes. pip 24 and 25 print the 'not a valid editable requirement' message; pip 26 prints a traceback ending in InvalidRequirement.

Fix · windows

-   Remove the backslashes: pip install -e packages/markitdown\[all\] (PowerShell and cmd do not treat the brackets specially)
-   Or quote it: pip install -e "packages/markitdown\[all\]"

Affected: any · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/2232)

Reported, not reproduced by us

### git@github.com: Permission denied (publickey).

Cloning over SSH needs an SSH key registered with GitHub. This is a git setup problem, not a MarkItDown one.

Fix

-   Clone over HTTPS instead: git clone https://github.com/microsoft/markitdown.git
-   Or install the package from PyPI and skip the clone.

Affected: n/a · [Upstream report](https://github.com/microsoft/markitdown/issues/1729)

Observed in CI

### zsh:1: no matches found: markitdown\[all\]

zsh treats \[all\] as a pattern and stops when nothing matches. bash passes it through, fish 4.2 and PowerShell 7 accepted it unquoted in our tests.

Fix · macos

-   Quote the requirement: pip install 'markitdown\[all\]'
-   Or escape the bracket: pip install markitdown\\\[all\\\]

Affected: any · [Full guide](https://markitdown.dev/install/mac/#zsh-no-matches) · [Upstream report](https://github.com/microsoft/markitdown/issues/1152)

Reproduced by us · fixed in 0.1.8 or earlier (not Intel macOS)

### ERROR: Cannot install markitdown because these package versions have conflicting dependencies.

Older releases pinned magika, which needed an onnxruntime wheel that did not exist for Python 3.14. Current releases install on 3.14 on Windows, Linux and Apple Silicon macOS. On an Intel Mac, Python 3.14 still has no onnxruntime wheel: pip refuses the exact version 0.1.9 (ResolutionImpossible) and, without a version, silently falls back to 0.0.2.

Fix

-   Upgrade to markitdown 0.1.8 or newer (we installed 0.1.9 on Python 3.14 in every CI cell except Intel macOS).
-   On an Intel Mac use Python 3.13 or older (uv tool install --python 3.13 "markitdown\[all\]").

Affected: 0.1.4 (tested) and earlier on Python 3.14; every release on Intel macOS with Python 3.14 · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/1470)

Reproduced by us

### WARNING: markitdown 0.0.1a1 does not provide the extra 'all'

markitdown 0.1.x needs Python 3.10 or newer. On Python 3.9 pip falls back to the only release that allows it, a 2.6 kB placeholder from 2024.

Fix

-   Check python --version; use Python 3.10 to 3.14.
-   pip list | grep markitdown: a version starting 0.0.1a is the placeholder.

Affected: Python 3.9 and older · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/command-not-found/#cause-2)

Reproduced by us · fixed in uv 0.12.0

### markitdown 0.1.5

markitdown\[all\] 0.1.9 depends on a pre-release package. uv before 0.12.0 refuses pre-releases by default and silently picks 0.1.5, the last release that does not need one.

Fix

-   Upgrade uv to 0.12.0 or newer.
-   Or add --prerelease=allow.
-   pipx inherits the problem when uv is on PATH.

Affected: uv 0.4.30 to 0.11.33 · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/install/#uv)

Reported, not reproduced by us

### ModuleNotFoundError: No module named 'packaging.licenses'

An old packaging library in the build environment (Python 3.10 with an old pip) cannot read the licence metadata of a package being built.

Fix

-   Upgrade pip and packaging first: python -m pip install -U pip packaging
-   Or use Python 3.11 or newer.

Affected: old pip on Python 3.10 · [Upstream report](https://github.com/microsoft/markitdown/issues/1046)

Reproduced by us

### error: failed to run custom build command for \`openssl-sys\`

cryptography has no Windows ARM64 wheel for some versions, so pip tries to build it from source.

Fix · windows

-   pip install --only-binary=:all: "markitdown\[all\]" (verified on Windows 11 ARM64, Python 3.13: pip picks an older cryptography that has an ARM64 wheel)

Affected: Windows on ARM, markitdown\[all\] · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/2440)

Reported, not reproduced by us

### DLL load failed while importing onnxruntime\_pybind11\_state: A dynamic link library (DLL) initialization routine failed.

onnxruntime and the Microsoft Visual C++ runtime on the machine do not match.

Fix · windows

-   Install or repair the current Microsoft Visual C++ Redistributable, then reinstall onnxruntime.
-   Upstream pinned onnxruntime<=1.20.1 on Windows in 0.1.3 and 0.1.4 and removed the pin in 0.1.5.

Affected: Windows; depends on the runtime installed · [Upstream report](https://github.com/microsoft/markitdown/issues/1266)

Reported, not reproduced by us

### AttributeError: 'Magika' object has no attribute 'identify\_stream'. Did you mean: 'identify\_bytes'?

An old magika from another package manager is being imported by a newer markitdown.

Fix

-   Install markitdown into a clean venv with pip so magika matches the version markitdown asks for.

Affected: mixed old magika · [Full guide](https://markitdown.dev/errors/import-error/#magika-identify-stream) · [Upstream report](https://github.com/microsoft/markitdown/issues/1202)

Reproduced by us

### warning: The package \`markitdown==0.0.2\` does not have an extra named \`all\`

The Python in use is outside what MarkItDown 0.1.8 and 0.1.9 allow (3.10 to 3.14): Python 3.15 and newer, Python 3.9 and older (Apple's python3 is 3.9.6), or Python 3.14 on an Intel Mac. The installer falls back to an old release that has no extras and, for 3.9 and older, no command.

Fix

-   Name Python 3.13: uv tool install --python 3.13 "markitdown\[all\]", uvx --python 3.13 ..., pipx install --fetch-missing-python --python 3.13 "markitdown\[all\]".
-   For pip, create the virtual environment with a 3.10 to 3.13 Python and check python --version first.

Affected: Python 3.15 (3.15.2 tested), 3.9 and older, Python 3.14 on Intel macOS · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/install/mac/#python-traps)

### Missing extras and unsupported files

Reproduced by us

### DocxConverter threw MissingDependencyException with message: DocxConverter recognized the input as a potential .docx file, but the dependencies needed to read .docx files have not been installed. To resolve this error, include the optional dependency \[docx\] or \[all\] when installing MarkItDown.

The base package does not include readers for PDF, Word, Excel, PowerPoint or Outlook files. The extra for the format must be installed.

Fix

-   Install the extra named in the message: pip install "markitdown\[pdf\]" (or docx, pptx, xlsx, xls, outlook, or all).
-   Check with python -c "import importlib.metadata as m; print(m.version('markitdown'))" that you are in the environment you think you are.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/missing-dependency/#missingdependencyexception) · [Upstream report](https://github.com/microsoft/markitdown/issues/2361)

Reproduced by us

### FileConversionException: File conversion failed after 1 attempts:

A wrapper. The real cause is the next line, which names the converter and the exception it raised (for example ' - PdfConverter threw PDFPasswordIncorrect').

Fix

-   Read the line under the wrapper.
-   In Python, read e.attempts: each item has the converter and exc\_info.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/missing-dependency/#fileconversionexception)

Reproduced by us

### markitdown.\_exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conversion, suggesting that the filetype is simply not supported.

Binary .doc (and .ppt, .odt, .odp, .ods, .gif, .bmp, .tiff, .webp) have no converter.

Fix

-   Convert the file to .docx first (LibreOffice: soffice --headless --convert-to docx file.doc); the quality of that route is measured on the Word page.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/missing-dependency/#unsupportedformatexception) · [Upstream report](https://github.com/microsoft/markitdown/issues/1220)

Reproduced by us

### markitdown.\_markitdown.UnsupportedFormatException

No converter accepted the input: an unsupported type, a wrong or missing extension on stdin input, or MarkItDown(enable\_builtins=False).

Fix

-   Check the supported list on the formats page.
-   For stdin give a hint: markitdown -x .csv < data.csv.
-   Check you did not disable the built-in converters.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/missing-dependency/#unsupportedformatexception) · [Upstream report](https://github.com/microsoft/markitdown/issues/222)

### Command-line and Python API mistakes

Reproduced on an older release · fixed in 0.0.1a4 or 0.0.2

### markitdown: error: unrecognized arguments: -o document.md

A very early alpha (0.0.1a3 in our test) had no -o option.

Fix

-   Upgrade: pip install -U markitdown (0.0.2 and later accept -o).

Affected: 0.0.1a3 · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/268)

Reproduced by us

### markitdown: error: unrecognized arguments: --llm-client x

The command line has no LLM options in any release we tested (0.1.5 and 0.1.9). LLM image descriptions are available from Python only.

Fix

-   Use the Python API: MarkItDown(llm\_client=..., llm\_model=...).convert(...).

Affected: 0.1.5 and 0.1.9 (tested) · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/1601)

Reproduced on an older release · fixed in 0.0.1a3

### TypeError: MarkItDown.\_\_init\_\_() got an unexpected keyword argument 'llm\_client'

The earliest alpha used another name for the argument.

Fix

-   Upgrade to a current release and use llm\_client, llm\_model and llm\_prompt.

Affected: 0.0.1a2 (tested) · last reproduced 2026-11-15 · [Upstream report](https://github.com/microsoft/markitdown/issues/99)

Reported, not reproduced by us · fixed in 0.1.0

### UnboundLocalError: local variable 'res' referenced before assignment

A bug in the earliest alphas that hid the real converter error.

Fix

-   Upgrade to a current release.

Affected: 0.0.1 alphas · [Upstream report](https://github.com/microsoft/markitdown/issues/81)

### PDF

Reproduced by us

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

Fix

-   Repair the file: print it to a new PDF or re-save it with another PDF program, then convert.
-   No fix is released: it still fails on 0.1.9.

Affected: 0.1.6, 0.1.8, 0.1.9 (tested) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/pdf/#errors) · [Upstream report](https://github.com/microsoft/markitdown/issues/2071)

Reported, not reproduced by us

### Could get FontBBox from font descriptor because None cannot be parsed as 4 floats

A warning from the PDF library about a font entry. It does not stop the conversion.

Fix

-   Ignore it unless the output is also wrong.

Affected: n/a · [Upstream report](https://github.com/microsoft/markitdown/issues/1347)

Reproduced on an older release · fixed in 0.1.6

### Killed

Memory grew with page count in 0.1.5; 0.1.6 closes pages after use.

Fix

-   Upgrade to markitdown 0.1.6 or newer.

Affected: 0.1.5 · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/pdf/#scale) · [Upstream report](https://github.com/microsoft/markitdown/issues/1611)

Reproduced by us

### PdfConverter threw PDFPasswordIncorrect with message:

The PDF is encrypted with a user password and the CLI and API have no password option.

Fix

-   Remove the password with another tool (for example qpdf --decrypt --password=... in.pdf out.pdf), then convert.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/pdf/#encrypted)

### Word, Excel, PowerPoint

Reported, not reproduced by us

### DocxConverter threw KeyError with message: 'w:ilvl'

Reported for DOCX files written by tools other than Word; the underlying DOCX reader (mammoth) fails on a numbering definition it does not expect.

Fix

-   Open and re-save the file in Word or LibreOffice, then convert again.
-   Or convert it with another tool; the upstream issue is open.

Affected: reported on 0.1.x · [Full guide](https://markitdown.dev/formats/word/#errors) · [Upstream report](https://github.com/microsoft/markitdown/issues/1282)

Reproduced by us · fixed in 0.1.9

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

Fix

-   Upgrade to markitdown 0.1.9, which requires mammoth 1.12.2 or newer.

Affected: 0.1.6 and 0.1.8 (tested; mammoth 1.11) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/word/#errors) · [Upstream report](https://github.com/microsoft/markitdown/issues/2646)

### Images, audio, YouTube

Reproduced by us · fixed in 0.1.8

### RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

The audio library (pydub) checks for ffmpeg when it is imported. It is only a warning; ffmpeg is needed for MP3 and M4A input, not for WAV and not for any other format.

Fix

-   Ignore it unless you convert MP3 or M4A audio.
-   Install ffmpeg (apt install ffmpeg, brew install ffmpeg, winget install ffmpeg) if you do.
-   Upgrade to markitdown 0.1.8 or newer: the warning no longer prints on normal runs.
-   Install without the audio extra if you never transcribe audio.

Affected: 0.1.4 to 0.1.7 print it on every run (tested); 0.1.8 and 0.1.9 print it only when Python warnings are enabled for the import · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/ffmpeg/#versions) · [Upstream report](https://github.com/microsoft/markitdown/issues/21)

Reproduced by us

### !\[\](data:image/png;base64...)

Images embedded in Word and other files are replaced by a truncated placeholder on purpose, to keep the output small.

Fix

-   Command line: --keep-data-uris. Python: convert(..., keep\_data\_uris=True).
-   Our DOCX test image: 103 characters by default, 34,507 with the option.

Affected: all 0.1.x · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/images/#data-uri) · [Upstream report](https://github.com/microsoft/markitdown/issues/162)

Reproduced by us

### ImageConverter threw RuntimeError with message: ExifTool version 12.16 is vulnerable to CVE-2021-22204. Please upgrade to version 12.24 or later.

MarkItDown refuses to run an ExifTool older than 12.24.

Fix

-   Upgrade ExifTool to 12.24 or newer (we used 13.50).
-   Or remove ExifTool from PATH; images then convert without metadata.

Affected: 0.1.3 and later with ExifTool older than 12.24 · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/images/#image-files) · [Upstream report](https://github.com/microsoft/markitdown/issues/1434)

Reproduced by us

### \### Audio Transcript: Error. Could not transcribe this audio.

Transcription is sent to Google's free web speech endpoint. It fails when that service cannot hear speech (silence) or cannot be reached.

Fix

-   Check that the audio contains clear speech and that the machine can reach the internet.
-   For private audio use a local transcription tool instead; MarkItDown sends audio to a third-party service.

Affected: all releases with the audio extra · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/audio/#could-not-transcribe) · [Upstream report](https://github.com/microsoft/markitdown/issues/74)

Not yet tested · fixed in 0.1.8

### Attempt 1 failed: no element found: line 1, column 0

An outdated youtube-transcript-api.

Fix

-   Upgrade to markitdown 0.1.8 or newer (requires youtube-transcript-api 1.2.3 or newer).

Affected: before 0.1.8 · [Full guide](https://markitdown.dev/formats/youtube/#no-element-found) · [Upstream report](https://github.com/microsoft/markitdown/issues/1383)

Not yet tested · fixed in 0.1.8

### 'YouTubeTranscriptApi' object has no attribute 'fetch'

An old youtube-transcript-api combined with a newer markitdown.

Fix

-   Upgrade youtube-transcript-api, or install markitdown 0.1.8 or newer in a clean environment.

Affected: mixed versions · [Full guide](https://markitdown.dev/formats/youtube/#no-attribute-fetch) · [Upstream report](https://github.com/microsoft/markitdown/issues/1232)

Reproduced by us

### 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. WAV does not need it.

Fix

-   Install ffmpeg and open a new terminal, or convert the file to WAV first.

Affected: 0.1.4 to 0.1.9 (tested) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/ffmpeg/#needs)

### URLs

Reproduced by us

### requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://en.wikipedia.org/wiki/Markdown

The library's default request identifies itself as python-requests, which some sites (Wikipedia from our lab network) refuse. Pages that allow it convert normally (example.com worked).

Fix

-   Fetch the page yourself with a User-Agent the site accepts, then pass the response to convert\_response or the bytes to convert\_stream.
-   Or give MarkItDown your own requests.Session with the header set (see the API guide).

Affected: 0.1.9 (tested from a data-centre network) · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/formats/html/#403-forbidden) · [Upstream report](https://github.com/microsoft/markitdown/issues/2820)

### Azure (not tested by us)

Reported, not reproduced by us

### DefaultAzureCredential failed to retrieve a token from the included credentials.

Document Intelligence was configured without a key, so the library tried default Azure credentials.

Fix

-   Pass docintel\_credential=AzureKeyCredential(key) or set AZURE\_API\_KEY (0.1.2 and later). Azure was not tested by us.

Affected: reported · [Upstream report](https://github.com/microsoft/markitdown/issues/1168)

### Output and encoding

Reproduced by us · fixed in 0.1.0 (exception replaced by silent ?)

### UnicodeEncodeError: 'gbk' codec can't encode character '\\U0001f642' in position 852: illegal multibyte sequence

Output redirected with > is encoded with the console or system code page (cp1252, cp932, gbk...), which cannot represent every character. markitdown 0.1.0 and later replace such characters with ? instead of raising; 0.0.x releases raise.

Fix · windows

-   Use -o out.md: the file is written as UTF-8 with no BOM in every shell we tested.
-   Or set PYTHONUTF8=1 (or PYTHONIOENCODING=utf-8) before redirecting with > in cmd or PowerShell 7.
-   Upgrade: from 0.1.0 on you get ? instead of an exception, which is quieter but still loses the characters.

Affected: 0.0.1a5, 0.0.1 and 0.0.2 raise; 0.1.0 to 0.1.9 replace with ? · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/unicodeencodeerror/#crash) · [Upstream report](https://github.com/microsoft/markitdown/issues/111)

### MCP server

-   `MCP tool "convert_to_markdown" response (51164 tokens) exceeds maximum allowed tokens (25000).` ([details](https://markitdown.dev/mcp/troubleshooting/#token-limit))
-   `Input should be 'tools/call'` ([details](https://markitdown.dev/mcp/troubleshooting/#validation-error))
-   `Field required [type=missing, input_value={}, input_type=dict]` ([details](https://markitdown.dev/mcp/troubleshooting/#field-required))
-   `SseError: SSE error: TypeError: fetch failed: other side closed` ([details](https://markitdown.dev/mcp/troubleshooting/#docker-networking))

### Warnings you can ignore

Reproduced by us

### \[W:onnxruntime:Default, device\_discovery.cc:95 GetPciBusId\] Skipping pci\_bus\_id for PCI path at

A warning from the onnxruntime library that MarkItDown's file-type detector uses. It prints on some virtual machines and containers (we saw it on every GitHub Linux runner) when the machine's PCI device names have an unexpected format. It does not change any output.

Fix

-   Ignore it: the conversion results with and without it were identical in our runs.
-   To hide it, redirect standard error (2>/dev/null) or filter it in your own code.

Affected: Linux virtual machines and containers, onnxruntime 1.32 · last reproduced 2026-11-15

### No error, wrong result

Reproduced by us

### (empty output)

The file has no text layer, or its content is created by JavaScript. MarkItDown does no OCR by itself.

Fix

-   Scanned PDF: run OCR first or use the OCR plugin (see the OCR page).
-   JavaScript page: save the rendered HTML from a browser and convert that.

Affected: all · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/ocr/#empty-output) · [Upstream report](https://github.com/microsoft/markitdown/issues/152)

Reproduced by us

### (no error; sections for some files in the archive are absent)

A ZIP is converted member by member; a member whose converter needs an extra that is not installed is left out without an error. Our bundle with a Word file returned four of five sections on the bare install.

Fix

-   Install the extras you need (pip install "markitdown\[all\]") and compare the list of ## File: sections with the archive contents.

Affected: 0.1.9 bare install · last reproduced 2026-11-15 · [Full guide](https://markitdown.dev/errors/missing-dependency/#surprises)

## Fixed by upgrading

All entries: status, affected releases and the release that fixed them
| ID | Message | Status | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| E01 | 'markitdown' is not recognized as an internal or external command, operable program or batch file. | reproduced | all releases |  |
| E02 | The term 'source' is not recognized as a name of a cmdlet, function, script file, or executable program. | reproduced | n/a (shell) |  |
| E02b | File ...\\v\\Scripts\\Activate.ps1 cannot be loaded because running scripts is disabled on this system. | reproduced | n/a (shell) |  |
| E03 | ImportError: cannot import name 'MarkItDown' from partially initialized module 'markitdown' (most likely due to a circul | reproduced | any |  |
| E04 | ERROR: 'packages/markitdown\\\[all\\\]' is not a valid editable requirement. It should either be a path to a local project o | reproduced | any |  |
| E05 | git@github.com: Permission denied (publickey). | not-reproduced | n/a |  |
| E06 | zsh:1: no matches found: markitdown\[all\] | observed-ci | any |  |
| E07 | ERROR: Cannot install markitdown because these package versions have conflicting dependencies. | reproduced | 0.1.4 (tested) and earlier on Python 3.14; every release on Intel macOS with Python 3.14 | 0.1.8 or earlier (not Intel macOS) |
| E07b | WARNING: markitdown 0.0.1a1 does not provide the extra 'all' | reproduced | Python 3.9 and older |  |
| E07c | markitdown 0.1.5 | reproduced | uv 0.4.30 to 0.11.33 | uv 0.12.0 |
| E08 | ModuleNotFoundError: No module named 'packaging.licenses' | not-reproduced | old pip on Python 3.10 |  |
| E09 | error: failed to run custom build command for \`openssl-sys\` | reproduced | Windows on ARM, markitdown\[all\] |  |
| E10 | DocxConverter threw MissingDependencyException with message: DocxConverter recognized the input as a potential .docx fil | reproduced | all 0.1.x |  |
| E11 | FileConversionException: File conversion failed after 1 attempts: | reproduced | all 0.1.x |  |
| E12 | RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work | reproduced | 0.1.4 to 0.1.7 print it on every run (tested); 0.1.8 and 0.1.9 print it only when Python warnings are enabled for the import | 0.1.8 |
| E13 | DLL load failed while importing onnxruntime\_pybind11\_state: A dynamic link library (DLL) initialization routine failed. | not-reproduced | Windows; depends on the runtime installed |  |
| E14 | AttributeError: 'Magika' object has no attribute 'identify\_stream'. Did you mean: 'identify\_bytes'? | not-reproduced | mixed old magika |  |
| E15 | UnicodeEncodeError: 'gbk' codec can't encode character '\\U0001f642' in position 852: illegal multibyte sequence | reproduced | 0.0.1a5, 0.0.1 and 0.0.2 raise; 0.1.0 to 0.1.9 replace with ? | 0.1.0 (exception replaced by silent ?) |
| E18 | markitdown: error: unrecognized arguments: -o document.md | reproduced-older | 0.0.1a3 | 0.0.1a4 or 0.0.2 |
| E19 | markitdown: error: unrecognized arguments: --llm-client x | reproduced | 0.1.5 and 0.1.9 (tested) |  |
| E20 | TypeError: MarkItDown.\_\_init\_\_() got an unexpected keyword argument 'llm\_client' | reproduced-older | 0.0.1a2 (tested) | 0.0.1a3 |
| E21 | DocxConverter threw KeyError with message: 'w:ilvl' | not-reproduced | reported on 0.1.x |  |
| E22 | DocxConverter threw IndexError with message: pop from empty list | reproduced | 0.1.6 and 0.1.8 (tested; mammoth 1.11) | 0.1.9 |
| E23 | markitdown.\_exceptions.UnsupportedFormatException: Could not convert stream to Markdown. No converter attempted a conver | reproduced | all 0.1.x |  |
| E24 | PdfConverter threw ValueError with message: not enough values to unpack (expected 4, got 2) | reproduced | 0.1.6, 0.1.8, 0.1.9 (tested) |  |
| E25 | Could get FontBBox from font descriptor because None cannot be parsed as 4 floats | not-reproduced | n/a |  |
| E26 | Killed | reproduced-older | 0.1.5 | 0.1.6 |
| E27 | !\[\](data:image/png;base64...) | reproduced | all 0.1.x |  |
| E28 | ImageConverter threw RuntimeError with message: ExifTool version 12.16 is vulnerable to CVE-2021-22204. Please upgrade t | reproduced | 0.1.3 and later with ExifTool older than 12.24 |  |
| E29 | \### Audio Transcript: Error. Could not transcribe this audio. | reproduced | all releases with the audio extra |  |
| E30 | Attempt 1 failed: no element found: line 1, column 0 | pending | before 0.1.8 | 0.1.8 |
| E31 | 'YouTubeTranscriptApi' object has no attribute 'fetch' | pending | mixed versions | 0.1.8 |
| E32 | DefaultAzureCredential failed to retrieve a token from the included credentials. | not-reproduced | reported |  |
| E33 | UnboundLocalError: local variable 'res' referenced before assignment | not-reproduced | 0.0.1 alphas | 0.1.0 |
| E34 | MCP tool "convert\_to\_markdown" response (51164 tokens) exceeds maximum allowed tokens (25000). | pending | all markitdown-mcp releases |  |
| E35 | Input should be 'tools/call' | pending | 0.0.1a4 | 0.0.1a7 |
| E36 | Field required \[type=missing, input\_value={}, input\_type=dict\] | pending | any |  |
| E37 | SseError: SSE error: TypeError: fetch failed: other side closed | pending | Docker |  |
| E38 | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://en.wikipedia.org/wiki/Markdown | reproduced | 0.1.9 (tested from a data-centre network) |  |
| E39 | markitdown.\_markitdown.UnsupportedFormatException | reproduced | all 0.1.x |  |
| E40 | (empty output) | reproduced | all |  |
| E41 | AudioConverter threw FileNotFoundError with message: \[Errno 2\] No such file or directory: 'ffprobe' | reproduced | 0.1.4 to 0.1.9 (tested) |  |
| E42 | PdfConverter threw PDFPasswordIncorrect with message: | reproduced | all 0.1.x |  |
| E43 | warning: The package \`markitdown==0.0.2\` does not have an extra named \`all\` | reproduced | Python 3.15 (3.15.2 tested), 3.9 and older, Python 3.14 on Intel macOS |  |
| E44 | (no error; sections for some files in the archive are absent) | reproduced | 0.1.9 bare install |  |
| E45 | \[W:onnxruntime:Default, device\_discovery.cc:95 GetPciBusId\] Skipping pci\_bus\_id for PCI path at | reproduced | Linux virtual machines and containers, onnxruntime 1.32 |  |

*All entries: status, affected releases and the release that fixed them Source: Test T08 · errors.json · errors-index.csv · Download CSV*

Check your version with `markitdown --version`, then upgrade with the command for your installer on [the install page](https://markitdown.dev/install/). Remember that `uv tool upgrade` does not move an exact pin.

## Still stuck

Collect these before asking anyone: `markitdown --version`, `python --version`, your operating system, the line after the wrapper, and whether the file opens in another program. Upstream questions go to the [project's issue tracker](https://github.com/microsoft/markitdown/issues). If your error is not listed, tell us at [hello@markitdown.dev](mailto:hello@markitdown.dev), or paste it into the decoder and use its "open an email" link.

## Related

- [markitdown is not recognized / command not found](https://markitdown.dev/errors/command-not-found/): markitdown is not recognized / command not found.
- [MissingDependencyException, FileConversionException, UnsupportedFormatException](https://markitdown.dev/errors/missing-dependency/): MissingDependencyException and the other two exceptions.
- [UnicodeEncodeError and garbled output on Windows](https://markitdown.dev/errors/unicodeencodeerror/): UnicodeEncodeError and garbled output on Windows.
- [Couldn't find ffmpeg or avconv](https://markitdown.dev/errors/ffmpeg/): The ffmpeg warning: ignore it or not.
- [Install MarkItDown](https://markitdown.dev/install/): Install routes and Python rules.

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