<div dir="ltr">Hi Pete,<br><br><div class="gmail_quote"><div dir="ltr">Le jeu. 5 avr. 2018 à 03:45, Hans-Peter Jansen <<a href="mailto:hpj@urpla.net">hpj@urpla.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mittwoch, 4. April 2018 17:56:35 Denis Rouzaud wrote:<br>
> Sorry, just getting confused.<br>
><br>
> I am building SIP and installing it and it seems to be replacing existing<br>
> package i.e. both /usr/bin/sip and files in /usr/lib/python3/dist-packages/.<br>
><br>
> The only file missing (not installed) seems to be<br>
> /usr/share/python3/dist/python3-sip<br>
><br>
> Then, doing sip -V shows I correctly installed (returns 4.255.255).<br>
><br>
> And then, when building QGIS, I get<br>
><br>
> Traceback (most recent call last):<br>
>   File "/root/QGIS/scripts/pyuic-wrapper.py", line 26, in <module><br>
>     import qgis.PyQt.uic.pyuic<br>
>   File "/root/QGIS/build/output/python/qgis/__init__.py", line 72, in<br>
> <module> from qgis.core import QgsFeature, QgsGeometry<br>
>   File "/root/QGIS/build/output/python/qgis/core/__init__.py", line<br>
> 34, in <module><br>
>     from qgis._core import *<br>
> RuntimeError: the sip module implements API v12.0 to v12.3 but the<br>
> qgis._core module requires API v12.4<br>
<br>
I looks to me, like the sip parts of qgis are build with a newer sip, while<br>
you try to force it to use an earlier (system?) sip. Try to force a distclean<br>
build in a venv, and run qgis in that venv as well.<br></blockquote><div><br></div><div>I can't remove sip, because that also remove PyQt5-dev which is needed.</div><div><br></div><div>So I guess the way is the virtual env with my build sip.</div><div>Will give it a try.</div><div><br></div><div>Thanks for the hint!</div><div><br></div><div>Denis</div></div></div>