[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] SIP RuntimeError: the sip module implements API v12.0 to v12.3 but the xxx module require
From:       Denis Rouzaud <denis.rouzaud () gmail ! com>
Date:       2018-04-05 12:02:13
Message-ID: CAMtsY+b+Rva4svD7f=d1QiK+yCb8zgN5h731eE4b5M=VtKoLMA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Pete,

Le jeu. 5 avr. 2018 =C3=A0 03:45, Hans-Peter Jansen <hpj@urpla.net> a =C3=
=A9crit :

> 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 existi=
ng
> > 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, whi=
le
> 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.
>

I can't remove sip, because that also remove PyQt5-dev which is needed.

So I guess the way is the virtual env with my build sip.
Will give it a try.

Thanks for the hint!

Denis

[Attachment #5 (text/html)]

<div dir="ltr">Hi Pete,<br><br><div class="gmail_quote"><div dir="ltr">Le  jeu. 5 \
avr. 2018 Ã   03:45, Hans-Peter Jansen &lt;<a \
href="mailto:hpj@urpla.net">hpj@urpla.net</a>&gt; 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> \
&gt; Sorry, just getting confused.<br> &gt;<br>
&gt; I am building SIP and installing it and it seems to be replacing existing<br>
&gt; package i.e. both /usr/bin/sip and files in /usr/lib/python3/dist-packages/.<br>
&gt;<br>
&gt; The only file missing (not installed) seems to be<br>
&gt; /usr/share/python3/dist/python3-sip<br>
&gt;<br>
&gt; Then, doing sip -V shows I correctly installed (returns 4.255.255).<br>
&gt;<br>
&gt; And then, when building QGIS, I get<br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;     File &quot;/root/QGIS/scripts/pyuic-wrapper.py&quot;, line 26, in \
&lt;module&gt;<br> &gt;        import qgis.PyQt.uic.pyuic<br>
&gt;     File &quot;/root/QGIS/build/output/python/qgis/__init__.py&quot;, line 72, \
in<br> &gt; &lt;module&gt; from qgis.core import QgsFeature, QgsGeometry<br>
&gt;     File &quot;/root/QGIS/build/output/python/qgis/core/__init__.py&quot;, \
line<br> &gt; 34, in &lt;module&gt;<br>
&gt;        from qgis._core import *<br>
&gt; RuntimeError: the sip module implements API v12.0 to v12.3 but the<br>
&gt; 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&#39;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>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic