Feb-06-2022, 07:52 PM
@ snippsat: I did this all in the Python Idle shell. I was making a new OMR module for 4 classes.
Like I said, this has always worked before.
I think I know what may have caused the problem, but not yet how to fix it.
Recently, I wanted to get some text from a pdf. PyPDF2 could not get the text.
Not long ago, you mentioned pdfplumber. I copied your examples and saved them.
I installed pdfplumber. I got the text I wanted with pdfplumber.
I noticed when pdfplumber was installing, that it installed a version of PIL.
I already had PIL installed, because my little OMR programme needs it.
Somehow there is a clash.
Like I said, this has always worked before.
I think I know what may have caused the problem, but not yet how to fix it.
Recently, I wanted to get some text from a pdf. PyPDF2 could not get the text.
Not long ago, you mentioned pdfplumber. I copied your examples and saved them.
I installed pdfplumber. I got the text I wanted with pdfplumber.
I noticed when pdfplumber was installing, that it installed a version of PIL.
I already had PIL installed, because my little OMR programme needs it.
Somehow there is a clash.