Python Forum
docx module alternatives - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: docx module alternatives (/thread-22452.html)



docx module alternatives - Clunk_Head - Nov-13-2019

I'm reading all of the text from a word document(docx).
Until upgrading to 3.8 the docx module has done a fine job, but today I ran into a compound issue.
Error:
import docx File "C:\Program Files\Python38\lib\site-packages\docx.py", line 30, in <module> from exceptions import PendingDeprecationWarning ModuleNotFoundError: No module named 'exceptions'
So, I have questions:
What is the most modern module for reading docx? Where can I find a good example of reading a word doc line by line?
Why would my 3.8 installation not have the exceptions module?

Ah, found it myself.
https://pypi.org/project/python-docx/ appears to be the answer.
Is this the best module to go with?