Nov-13-2019, 03:12 PM
(This post was last modified: Nov-13-2019, 03:19 PM by Clunk_Head.)
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.
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?
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?