jsvine / pdfplumber

Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
MIT License
6.57k stars 659 forks source link

conflict with pdfmine3k in installing with pip3 #409

Closed aaronzhengwl closed 3 years ago

aaronzhengwl commented 3 years ago

Describe the bug

A clear and concise description of what the bug is. It looks this tool needs packet pdfmine, if I have installed pdfmine3k which is named pdfmine in python lib. Then pdfplumer cannot work. Vice Versa.

Code to reproduce the problem

Paste it here, or attach a Python file.

PDF file

Please attach any PDFs necessary to reproduce the problem.

If you need to redact text in a sensitive PDF, you can run it through JoshData/pdf-redactor.

Expected behavior

What did you expect the result should have been?

Actual behavior

What actually happened, instead?

Screenshots

image

image

If applicable, add screenshots to help explain your problem.

Environment

Additional context

Add any other context/notes about the problem here.

jsvine commented 3 years ago

This tool does not use pdfminer3k, but rather pdfminer.six. Installing pdfplumber automatically installs a compatible verison of pdfminer.six. If you have already installed pdfminer3k, you will need to uninstall it. I recommend:

pip uninstall pdfminer3k
pip uninstall pdfminer.six
pip install pdfplumber