-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DocumentPart object has no attribute '_rels'. #541
Comments
I have the same issue. Everything was working the day before python-docx 1.1.1 release and not it gets this error. As soon as I specified that I want previous version of python-docx 1.1.0, everything started working again. Here is my traceback: AttributeError Traceback (most recent call last) File /local_disk0/.ephemeral_nfs/envs/.../lib/python3.10/site-packages/docxtpl/template.py:382, in DocxTemplate.render(self, context, jinja_env, autoescape) File /local_disk0/.ephemeral_nfs/envs/.../lib/python3.10/site-packages/docxtpl/template.py:338, in DocxTemplate.build_headers_footers_xml(self, context, uri, jinja_env) File /local_disk0/.ephemeral_nfs/envs/.../lib/python3.10/site-packages/docxtpl/template.py:324, in DocxTemplate.get_headers_footers(self, uri) AttributeError: 'DocumentPart' object has no attribute '_rels' |
I've hit the same issue and rolled back to python-docx 1.1.0 as a fix. |
Rolling back also fixed the issue for me. |
I am going to investigate about what's new in that python-docx version... |
I created the new docxtpl 0.17.0 : it requires python-docx 1.1.1+ Please, could you test ? |
Yes, everything works perfectly for me. Thank you so much! How about the others? |
Yes, working with docxtpl 0.17.0 and python-docx 1.1.2. Thanks! |
Thank, i have already locked the dependencies so it is not an major issue, it works. |
Describe the bug
A clear and concise description of what the bug is.
It seems like python-docx has released an new version:
The text was updated successfully, but these errors were encountered: