-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi. I like this package for the functionality it provides, thanks for your work.
TLDR: After some fiddling I was able to use the package and it provides exactly what my app needs.
However installing it required some hacks and I don't know how to reliably install the package on other systems.
Moreover I was unable to use pyinstaller to bundle the app.
I am developing a PyQt5 app that needs to render PDF pages.
This package provides just what I needed.
My first issue with it was installing it on my system (MacOs 10.15, Python 3.8.2, Qt 5.15.2).
What I did after some trial&error was:
brew install cmake poppler-qt5
pip install git+git://github.com/frescobaldi/python-poppler-qt5@92e5962ec3751ab051d0b655fd61afc7a1cf709e
For reasons that are not clear to me to make that work I had to manually link the directory of PyQt5-stubs so that it could be found by python-poppler-qt5.
After that I can run my app and it works perfectly.
I would not know where to start, however, in giving instructions to reliably replicate the installation on other machines.
In the trial and error phase I also managed to get all the error messages mentioned in building/installation issues on this repo, suggesting those are still not addressed.
To make this worse, even after installing the library on my system, I cannot successfully bundle the app with pyinstaller. That is, I can produce a bundle but it will crash when the features using python-poppler-qt5 are exercised. I am not familiar enough with the internals of pyinstaller to really figure out what goes wrong, but maybe it has trouble bundling poppler?
Finally, I tried to install python-poppler-qt5 on Windows, but I am clueless about how to install the dependencies (e.g. poppler) so that the installation through pip works.
I guess #42 would help with this?
I am at this point stumped and would appreciate some advice for how to approach the problem.