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

Phil Thompson phil at riverbankcomputing.com
Wed Apr 4 19:03:20 BST 2018


On 4 Apr 2018, at 6:56 pm, Denis Rouzaud <denis.rouzaud at gmail.com> 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

I've no idea what that is.

> 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.

I wouldn't try and replace a distro's copy of sip, PyQt etc. Instead just create a venv and build everything in that.

Phil


More information about the PyQt mailing list