Bouke / docx-mailmerge

Mail merge for Office Open XML (docx) files without the need for Microsoft Office Word.
MIT License
274 stars 104 forks source link

Not importing mailmerge #4

Closed almasi771 closed 10 years ago

almasi771 commented 10 years ago

Hi,

So I did a pip installation of mailmerge and for some reason when I try to import it I get this error:

Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.6/site-packages/mailmerge.py", line 14, in ElementTree.register_namespace(prefix, uri) AttributeError: 'module' object has no attribute 'register_namespace'

I am not sure what it is.

Bouke commented 10 years ago

You seem to be trying mailmerge with Python 2.6, whereas mailmerge requires 2.7 or 3.3. The error you got is because I'm using register_namespace, a feature introduced in 2.7. You would have to upgrade your Python to at least 2.7 for mailmerge to work.