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