microsoft / microsoft/markitdown
DocxConverter threw KeyError with message: 'w:ilvl'
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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