cvscan
cvscan copied to clipboard
ModuleNotFoundError: No module named 'pdfminer.converter'
Hi I am using these codes to extract pdf text
from pdfminer.high_level import extract_text
def convert_pdf_to_txt(path):
print('You passed in: ' + path)
text = extract_text(path)
return text
Filepath = sys.argv[1]
PDFtext = convert_pdf_to_txt(Filepath)
print(PDFtext)
But it is throwing this error - ModuleNotFoundError: No module named 'pdfminer.converter'
P.S.: I have installed pdfminer.six and uninstalled pdfminer
Im having the same error!