piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Missing package: pikepdf #176

Open jrast opened 3 years ago

jrast commented 3 years ago

Package name: pikepdf Issue type: Missing package Link to PyPI page: https://pypi.org/project/pikepdf Link to piwheels page: https://www.piwheels.org/project/pikepdf Version: > 0.9.1 Python version: 3.5+ I am the maintainer: No More information:

pikepdf is a nice library to manipulate PDF's and is used by OCRmyPDF (which does what the name says). It would be nice if this library is available.

Detailed instructions about the installation can be found here: https://pikepdf.readthedocs.io/en/latest/installation.html

goncaloruao commented 3 years ago

I'm also facing problems building pikepdf on raspberry pi. Is there any change to add it to piwheels.org?

Thanks ! :)

jrast commented 3 years ago

Installing pikepdf has the following requirements:

On Raspbian the following Versions of libqpdf are available:

So, if I'm not wrong, the part which makes it difficult is that Raspbian only provides very old versions of libqpdf. Correct me if I'm wrong...

bennuttall commented 3 years ago

So, if I'm not wrong, the part which makes it difficult is that Raspbian only provides very old versions of libqpdf. Correct me if I'm wrong...

Yes that seems to be the case, in which case it's probably not buildable until (perhaps) Bullseye is out.

jrast commented 3 years ago

If someone likes to use pikepdf, these steps can be used to install the package (tested on Raspbian Buster):

sudo apt install libjpeg-dev
curl -OL https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.3.2/qpdf-10.3.2.tar.gz
tar -xf qpdf-10.3.2.tar.gz
cd ./qpdf-10.3.2
./configure; make; sudo make install
sudo ldconfig
pip3 install --user pikepdf  # --> This should work now!

This installs a new release of qpdf which is compatible with pikepdf. Note that this might break if another version of qpdf is already installed! Use at your own risk!