I am using python 3.6
on Mac OS X
. I am using the solution posted here for using pdfminer
as a library. I am able to use it as such on Windows 10
, but not on my Mac. I get the following error:
from pdf_to_txt import convert_pdf_to_txt
>>Error: cannot import name 'maxint'
Even after going into the pdfminer
files and changing it to maxsize
, I get a host of other errors. After some searching, this appears to be an issue with python 3
compatibility, and the solution is to use pdfminer.six
. However, after installing, I get the same error; checking pdfminer.__version__
gives me 20140328
whereas pdfminer.six
's most recent version is 20181108
.
How do I make sure I'm using the correct installed version of pdfminer?