microsoft / microsoft/markitdown

DocxConverter threw KeyError with message: 'w:ilvl'

Open
#1,282 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186k
Forks
13.7k
Avg merge
1d 4h
Merged PRs (30d)
49

Description

markitdown data/demo.docx > document.md --keep-data-uris
Traceback (most recent call last):
File "/opt/conda/bin/markitdown", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.10/site-packages/markitdown/main.py", line 196, in main
result = markitdown.convert(
File "/opt/conda/lib/python3.10/site-packages/markitdown/_markitdown.py", line 274, in convert
return self.convert_local(source, stream_info=stream_info, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/markitdown/_markitdown.py", line 328, in convert_local
return self._convert(file_stream=fh, stream_info_guesses=guesses, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/markitdown/_markitdown.py", line 614, in _convert
raise FileConversionException(attempts=failed_attempts)
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with markitdown data/demo.docx > document.md --keep-data-uris, then trace the conversion path through __main__.py and _markitdown.py to the reported DocxConverter error. Done means the DOCX converts without the KeyError and produces the expected document.md output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.