I'm trying to populate a Word document in Python with docx-mailmerge. Everything was working fine, but after some editing at home on another computer with another version of Word, my script gives an error at the line:
document = MailMerge(template)
Error:
document = MailMerge(template)
File "C:\Python27\lib\site-packages\mailmerge.py", line 79, in __init__
parent.remove(child)
File "src\lxml\lxml.etree.pyx", line 950, in lxml.etree._Element.remove
(src\lxml\lxml.etree.c:50327)
ValueError: Element is not a child of this node.
What does this mean?