frescobaldi / python-poppler-qt5

Python binding to libpoppler-qt5
Other
42 stars 32 forks source link

Build problem #17

Closed uliska closed 1 year ago

uliska commented 7 years ago
$ python3 setup.py build
running build
running build_ext
building 'popplerqt5' extension
/usr/bin/sip -I /usr/share/sip -t POPPLER_V0_28_0 -c build/temp.linux-x86_64-3.5 -b build/temp.linux-x86_64-3.5/poppler-qt5.sbf -I /usr/share/sip/PyQt5 -t WS_X11 -t Qt_5_6_1 poppler-qt5.sip
sip: Unable to find file "QtCore/QtCoremod.sip"
error: command '/usr/bin/sip' failed with exit status 1

Obviously the tool adds /usr/share/sip/PyQt5 to the include path - but I don't have any PyQt there, not even an /usr/share/sip. Actually I don't find any entry for PyQt5 and sip (using Ubuntu 16.10).

Looking through setup.py I must admit I don't really see how that value for the command line is retrieved.

Frescobaldi: 3.0.0
Python: 3.5.2+
python-ly: 0.9.5
Qt: 5.6.1
PyQt: 5.7
sip: 4.18.1
poppler: 0.38.0
python-poppler-qt: 0.24.2
OS: Linux-4.8.0-46-generic-x86_64-with-Ubuntu-16.10-yakkety
BasioMeusPuga commented 6 years ago

I'm trying to get this to compile within a flatpak. I get the same error. I read through the setup.py and provided manual input to --pyqt-sip-dir, but I'm kinda stuck there.

parekhnish commented 4 years ago

@BasioMeusPuga did you do what I have suggested in https://github.com/frescobaldi/python-poppler-qt5/issues/34#issue-551838358?

jeanas commented 1 year ago

This must have been either https://github.com/frescobaldi/python-poppler-qt5/issues/34#issue-551838358, or forgetting to install the python3-qt5-devel package (or however it is called) in addition to python3-qt5.