Skip to content

ImportError: cannot import name 'parse_xml' from 'docx.oxml' #93

@MitchDrage

Description

@MitchDrage

Hi there!

I've just started getting this import error as of a few days ago:

File "/azp/_work/1/s/antenv/lib/python3.10/site-packages/docxcompose/properties.py", line 9, in <module>
    from docx.oxml import parse_xml
ImportError: cannot import name 'parse_xml' from 'docx.oxml'

It looks like the python-docx project has moved their oxml files as part of their bump from 0.8.11 to 1.0.0:
from: python-docx/docx/oxml
to: python-docx/src/docx/oxml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions