[PyQt] SIP RuntimeError: the sip module implements API v12.0 to v12.3 but the xxx module requires API v12.4
Hans-Peter Jansen
hpj at urpla.net
Thu Apr 5 08:45:11 BST 2018
On Mittwoch, 4. April 2018 17:56:35 Denis Rouzaud wrote:
> 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 looks to me, like the sip parts of qgis are build with a newer sip, while
you try to force it to use an earlier (system?) sip. Try to force a distclean
build in a venv, and run qgis in that venv as well.
Cheers,
Pete
More information about the PyQt
mailing list