[PyQt] SIP RuntimeError: the sip module implements API v12.0 to v12.3 but the xxx module requires API v12.4

Denis Rouzaud denis.rouzaud at gmail.com
Wed Apr 4 18:56:35 BST 2018


Sorry, just getting confused.

I am building SIP and installing it and it seems to be replacing existing
package i.e. both /usr/bin/sip and files in /usr/lib/python3/dist-packages/.

The only file missing (not installed) seems to be
/usr/share/python3/dist/python3-sip

Then, doing sip -V shows I correctly installed (returns 4.255.255).

And then, when building QGIS, I get

Traceback (most recent call last):
  File "/root/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
  File "/root/QGIS/build/output/python/qgis/__init__.py", line 72, in <module>
    from qgis.core import QgsFeature, QgsGeometry
  File "/root/QGIS/build/output/python/qgis/core/__init__.py", line
34, in <module>
    from qgis._core import *
RuntimeError: the sip module implements API v12.0 to v12.3 but the
qgis._core module requires API v12.4


I don't understand what's going on here.

Cheers,
Denis

Le mer. 4 avr. 2018 à 13:48, Phil Thompson <phil at riverbankcomputing.com> a
écrit :

> On 4 Apr 2018, at 6:43 pm, Denis Rouzaud <denis.rouzaud at gmail.com> wrote:
> >
> > Hi again,
> >
> > Does this mean I have to recompile PyQt5?
>
> No (as I said before).
>
> > Or can I use current version on bionic (PyQt 5.9.4, which means API
> v12.3 if I followed)?
> >
> > Would the idea of patching 4.19.7 with what I need (signatures for
> signal) be working?
>
> Sorry, I don't understand.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180404/54f9f367/attachment-0001.html>


More information about the PyQt mailing list