Skip to content

Cannot build python-poppler-qt5: error "sip: QDomElement is undefined" #15

Closed
@GvMariani

Description

@GvMariani

Trying to build a (rpm) package of python-poppler-qt5 for the still upcoming Rosa Linux Fresh 2016.1 (a Mandriva derivative, sibiling of Mageia and OpenMandriva) on x86_64.

The build process fails after the "python3 setup.py build build_ext --qmake-bin=/usr/bin/qmake-qt5" command with this error message (full log attached):


sip: QDomElement is undefined
error: command '/usr/bin/sip3' failed with exit status 1


The distro rules allow for a side-to-side installation of python 2.x and python 3.x: the packages related to the first one have names "python-xxx-yyy", while the packages related to the latter one have names "python3-xxx-yyy".
The same is true for Qt4 and Qt5 stuff: I already had to add the above "build_ext --qmake-bin=/usr/bin/qmake-qt5" to the build command line, otherwise the build would fail with the error "Unsupported Qt version", because it finds the old Qt4 and not the newer (installed) Qt5.
So I have on my disk both PyQt4 and PyQt5, for both python versions: python-qt4 (ver 4.12) - python-qt5 (ver. 5.8.1); and python3-qt4 (ver 4.12) - python3-qt5 (ver. 5.8.1). The packages also differs on what they are exporting to other python packages: eg. the python-qt5 one exports PyQt5, while the python3-qt5 exports Py3Qt5...

I don't know much about python, but I would guess that setup.py need to know about this trick with the module names...
BuildFailed.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions