Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'pdfminer.converter' #28

Open
ShrinivasIyer opened this issue May 17, 2022 · 1 comment
Open

ModuleNotFoundError: No module named 'pdfminer.converter' #28

ShrinivasIyer opened this issue May 17, 2022 · 1 comment

Comments

@ShrinivasIyer
Copy link

ShrinivasIyer commented May 17, 2022

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

@dantearaujo1
Copy link

Im having the same error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants