[PyKDE] Bindings and the KDE project

Hans-Peter Jansen hpj at urpla.net
Thu Mar 25 12:12:01 GMT 2004


On Thursday 25 March 2004 11:57, Hans-Peter Jansen wrote:
>
> Well, to build PyKDE 3.11[PyQt-3.11,sip-3.10.1] with KDE 3.2.1, all
> it take is:
>
> for i in $(find sip -name \*-kde320.diff); do
>     o=$(echo $i | sed "s|kde320|kde321|g")
>     i=$(basename $i)
>     ln -s $i $o
> done
> ln -s kde320 extra/kde321
>
> and a little (dirty) quickfix (attached). I found a small glitch
> in configure.py, concerning the -d option (attached). Please apply
> this one, Jim.

I forgot to add the remaining issues:

ASSERT: "!_name.isEmpty()" in kinstance.cpp (91)
Traceback (most recent call last):
  File "menudemo.py", line 289, in ?
    mainWindow = MainWin (None, "main window")
  File "menudemo.py", line 58, in __init__
    self.initActions ()
  File "menudemo.py", line 90, in initActions
    self.toggle2Action  = KToggleAction ("Toggle 2", KShortcut.null (), 
self.slotToggle2, None)
  File "/usr/lib64/python2.3/site-packages/kdeui.py", line 654, in __init__
    libkdeuic.sipCallCtor(24,self,args)
TypeError: Argument 3 of KToggleAction() has an invalid type

Traceback (most recent call last):
  File "xmlmenudemo.py", line 289, in ?
    mainWindow = MainWin (None, "main window")
  File "xmlmenudemo.py", line 58, in __init__
    self.initActions ()
  File "xmlmenudemo.py", line 123, in initActions
    self.toggle2Action  = KToggleAction ("Toggle 2", scNull, self.slotToggle2, 
acts, "toggle2Action")
  File "/usr/lib64/python2.3/site-packages/kdeui.py", line 654, in __init__
    libkdeuic.sipCallCtor(24,self,args)
TypeError: Argument 3 of KToggleAction() has an invalid type

acts is a <kdeui.KActionCollection> class.
KToggleAction is sip defined as:

KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, 
SIP_SLOT_CON(), QObject*/TransferThis/, const char* = 0);

So it appears, that neigher None nor acts is allowed as a
QObject *. This seem to be a sip problem, which is under Phil's
investigation.

ASSERT: "!_name.isEmpty()" in kinstance.cpp (91)
Traceback (most recent call last):
  File "kurldemo.py", line 96, in ?
    mainWindow = MainWin (None, "main window")
  File "kurldemo.py", line 56, in __init__
    for url in urlList:
TypeError: iteration over non-sequence

This one is due to a missing __getitem__ method.

Pete




More information about the PyQt mailing list