python-docx-template icon indicating copy to clipboard operation
python-docx-template copied to clipboard

DocumentPart object has no attribute '_rels'.

Open theodore86 opened this issue 9 months ago • 8 comments

Describe the bug

A clear and concise description of what the bug is.

It seems like python-docx has released an new version:

python-docx==1.1.1
docxtpl==0.16.8
uri = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header'
    def get_headers_footers(self, uri):
>       for relKey, val in self.docx._part._rels.items():
E       AttributeError: 'DocumentPart' object has no attribute '_rels'. Did you mean: 'rels'?

theodore86 avatar Apr 30 '24 10:04 theodore86