Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
docx module alternatives
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.
import docx File "C:\Program Files\Python38\lib\site-packages\", 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. appears to be the answer.
Is this the best module to go with?

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to add run in paragraph using python-docx? toothedsword 0 361 May-12-2021, 10:55 AM
Last Post: toothedsword
  Eliminating error in Python update-alternatives Led_Zeppelin 2 591 Apr-14-2021, 12:49 PM
Last Post: Led_Zeppelin
  Selecting rows that contain certain values using two alternatives tgottsc1 1 472 Jan-24-2021, 08:34 PM
Last Post: nealc
  How to use python to convert pdf to docx impact_code 3 1,029 Aug-01-2020, 01:58 PM
Last Post: Yoriz
  Are there any python alternatives for LuaMacros? NathanStanley 1 1,533 Apr-07-2020, 09:51 AM
Last Post: Larz60+
  Python 3.6 Alternatives to Cx_Freeze KipCarter 5 2,259 Jan-14-2020, 11:51 AM
Last Post: KipCarter
  Read and tokenize doc/docx? JP_ROMANO 10 3,406 Oct-25-2018, 07:32 PM
Last Post: JP_ROMANO
  python word-docx jon0852 0 2,030 Sep-01-2017, 04:54 AM
Last Post: jon0852

Forum Jump:

User Panel Messages

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