Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
docx module alternatives
#1
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to use python to convert pdf to docx impact_code 3 450 Aug-01-2020, 01:58 PM
Last Post: Yoriz
  Are there any python alternatives for LuaMacros? NathanStanley 1 614 Apr-07-2020, 09:51 AM
Last Post: Larz60+
  Python 3.6 Alternatives to Cx_Freeze KipCarter 5 1,102 Jan-14-2020, 11:51 AM
Last Post: KipCarter
  Read and tokenize doc/docx? JP_ROMANO 10 2,400 Oct-25-2018, 07:32 PM
Last Post: JP_ROMANO
  python word-docx jon0852 0 1,552 Sep-01-2017, 04:54 AM
Last Post: jon0852

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020