Cannot install pdftotext using pip

Viewed 24

I have already spent hours trying to install pdftotext package using pip. I have already installed the dependency using the following code: brew install pkg-config poppler python

It will be a relief to get some help!!!

Error

3 Answers

That version of the pdftotext PyPI package is evidently not compatible with the version of poppler libraries installed.

You should probably raise this as an issue on the pdftotext project's issue tracker to see if they can help.

Meanwhile, you can probably use the pdftotext command line utility that's shipped with poppler-utils in a subprocess.

Error saying issue with lib -poppler. Try following commands

Check this -- Reference

sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python-dev

Then

sudo apt-get install libpoppler-cpp-dev

Finally,

pip install pdftotext

It is C++ compilation error, pdftotext is being built from sources, against dependency: poppler library and it fails to find needed symbols in headers.

By constants build defines (DPOPPLER_CPP_AT_LEAST_0_88 etc) it seems that pdftotext needs (and was built against) rather old version of Poppler (0.88), while you have really new one 22.08.

I recommend you to try to install older Poppler 0.88 and try again.

Related