Forums

docx - exception error - Ipython 3.5

I am new to programming and I am trying to use docx in my ipython 3.5 console. I successfully installed docx; though, I am now getting the following error which I have not been able to solve:

  • ImportError Traceback (most recent call last) <ipython-input-1-aaffaf0552a1> in <module>() ----> 1 import docx

/home/Rtaik/.local/lib/python3.5/site-packages/docx.py in <module>() 28 TAGS = {} 29 ---> 30 from exceptions import PendingDeprecationWarning 31 from warnings import warn 32

ImportError: No module named 'exceptions'

I am wondering if someone can assist me with this issue.

I found the answer.

I needed to install python-docx rather than docx.

Thanks,