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

List:       kwrite-devel
Subject:    Re: katepart and Python bindings
From:       J._Pablo_Martín_Cobos <goinnn () gmail ! com>
Date:       2013-06-06 8:10:45
Message-ID: CALNyWLGRPXEPLK3QmhHoyXLb9YMSGjVxDP0dP1KvyZN7PJpMWA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2013/6/6 J. Pablo Martín Cobos <goinnn@gmail.com>

> 2013/6/5 Simon Edwards <simon@simonzone.com>
> 
> > Hello,
> > 
> > 
> > On 06/02/2013 06:39 AM, Alex Turbov wrote:
> > 
> > > I've played w/ a fresh build of PyKDE4 + kate.
> > > almost every Python plugin is broken due the uncertain (for me) error:
> > > 
> > > > > > app=kate.application.**activeMainWindow()
> > > > > > app
> > > 
> > > <PyKate4.kate.MainWindow object at 0x7f9fa17083b0>
> > > 
> > 
> > I think I know what is going on.
> > 
> > Do a clean rebuild of these bindings for kate application MainWindow and
> > friends, *after* building the ktexteditor bindings in PyKDE4.
> > 
> > The reason is that the SIP tool makes heavy use of tables with indexes to
> > reference things like classes. If binding module B (=kate application)
> > depends on classes in module A (=ktexteditor) then B will need to be
> > rebuilt if module A changes. Changing A changes the layout of its tables.
> > The mapping of class names to indexes from module A is held in a generated
> > C++ header file which is then used when building module B.
> > 
> > 
> > 
> I did the next, and I get the same error:
> 
> git clone git://anongit.kde.org/pykde4
> cd pykde4/
> mkdir build
> cd build/
> cmake .. -DBUILD_KTEXTEDITOR=1 -DCMAKE_BUILD_TYPE=DebugFull && make &&
> sudo make install
> 
> Please tell us if we are something wrong, In the before mail you can see
> the versions of python, PyQt, etc
> 
> 
Ok I understand finally.... I had to compile kate from zero too. Now
works!!!!

Thanks a lot!!

--
> 
> Pablo Martín
> 
> 
> 
> > cheers,
> > 
> > --
> > Simon Edwards
> > simon@simonzone.com
> > Nijmegen, The Netherlands
> > ______________________________**_________________
> > KWrite-Devel mailing list
> > KWrite-Devel@kde.org
> > https://mail.kde.org/mailman/**listinfo/kwrite-devel<https://mail.kde.org/mailman/listinfo/kwrite-devel>
> >  
> 
> 


[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/6 \
J. Pablo Martín Cobos <span dir="ltr">&lt;<a href="mailto:goinnn@gmail.com" \
target="_blank">goinnn@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <div dir="ltr">2013/6/5 Simon Edwards <span dir="ltr">&lt;<a \
href="mailto:simon@simonzone.com" \
target="_blank">simon@simonzone.com</a>&gt;</span><br><div class="gmail_extra"><div \
class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px \
0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Hello,<div><br>
<br>
On 06/02/2013 06:39 AM, Alex Turbov wrote:<br>
</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 I&#39;ve played w/ a fresh build of PyKDE4 + kate.<br>
almost every Python plugin is broken due the uncertain (for me) error:<br>
<br>
 &gt;&gt;&gt;app=kate.application.<u></u>activeMainWindow()<br>
 &gt;&gt;&gt;app<br>
<br>
&lt;PyKate4.kate.MainWindow object at 0x7f9fa17083b0&gt;<br>
</blockquote>
<br></div>
I think I know what is going on.<br>
<br>
Do a clean rebuild of these bindings for kate application MainWindow and friends, \
*after* building the ktexteditor bindings in PyKDE4.<br> <br>
The reason is that the SIP tool makes heavy use of tables with indexes to reference \
things like classes. If binding module B (=kate application) depends on classes in \
module A (=ktexteditor) then B will need to be rebuilt if module A changes. Changing \
A changes the layout of its tables. The mapping of class names to indexes from module \
A is held in a generated C++ header file which is then used when building module \
B.<div>

<div><br>
<br></div></div></blockquote><div><br></div></div><div>I did the next, and I get the \
same error:</div><div><br></div><div>git clone git://<a \
href="http://anongit.kde.org/pykde4" target="_blank">anongit.kde.org/pykde4</a></div>

<div>cd pykde4/</div><div>mkdir build </div><div>cd build/</div><div>cmake .. \
-DBUILD_KTEXTEDITOR=1 -DCMAKE_BUILD_TYPE=DebugFull &amp;&amp; make &amp;&amp; sudo \
make install<br></div><div><br></div> <div>Please tell us if we are something wrong, \
In the before mail you can see the versions of python, PyQt, \
etc</div><div><br></div></div></div></div></blockquote><div><br></div><div style>Ok I \
understand finally.... I had to compile kate from zero too. Now works!!!! <br> \
</div><div style><br></div><div style>Thanks a lot!!</div><div \
style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <div dir="ltr"><div class="gmail_extra"><div \
class="gmail_quote"><div></div><div>--</div><div><br></div><div>Pablo \
Martín</div><div class="im"><div><br> </div><div> </div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
 cheers,<br>
<br>
-- <br>
Simon Edwards<br>
<a href="mailto:simon@simonzone.com" target="_blank">simon@simonzone.com</a><br>
Nijmegen, The Netherlands<br>
______________________________<u></u>_________________<br>
KWrite-Devel mailing list<br>
<a href="mailto:KWrite-Devel@kde.org" target="_blank">KWrite-Devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kwrite-devel" \
target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/kwrite-devel</a><br> \
</div></div></blockquote></div></div><br></div></div> \
</blockquote></div><br></div></div>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


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

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