[PyKDE] Questions about PyKDE

Michal Krenek mikos at sg1.cz
Tue Apr 4 18:43:31 BST 2006

In my distribution (Arch Linux) PyKDE is not included in kdebindinbgs package 
(because of some build problems in the past). So I have tried to build it 
myself. But there goes first question - should I use PyKDE snapshot package 
from here or PyKDE included in kdebindings 3.5.2? Which version of PyKDE is 
newer? How are snapshots from here related to PyKDE included in kdebindings?

Anyway, I have tried to build PyKDE-snapshot20060122.tar.gz first, but failed 
with this error:

Creating top level Makefile...
Creating pykdeconfig.py...
make[1]: Entering directory 
g++ -c -Wno-deprecated-declarations -pipe -fPIC -march=i686 -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde350 -I/opt/kde/include -I/usr/include/python2.4 -I/opt/qt/include -I/opt/qt/mkspecs/linux-g++ -I/usr/X11R6/include -o 
sipdcoppart0.o sipdcoppart0.cpp
sip/dcop/dcopobject.sip: In function 'int 
convertTo_QPtrList_0200DCOPObject(PyObject*, void**, int*, PyObject*)':
sip/dcop/dcopobject.sip:137: error: too many arguments to function
sip/dcop/dcopobject.sip: In function 'PyObject* 
convertFrom_QPtrList_0200DCOPObject(void*, PyObject*)':
sip/dcop/dcopobject.sip:112: error: 'sipMapCppToSelf' was not declared in this 
sip/dcop/dcopclient.sip: In function 'int 
convertTo_QValueList_0200QCString(PyObject*, void**, int*, PyObject*)':
sip/dcop/dcopclient.sip:231: error: 'sipForceConvertToTransfer_QCString' was 
not declared in this scope
make[1]: *** [sipdcoppart0.o] Error 1
make[1]: Leaving directory 
make: *** [all] Error 2

Do you know what is wrong? I am using gcc 4.0.3.

Then I have tried to build PyKDE from kdebindings-3.5.2 (only PyKDE, not other 
things from kdebindings - I have kdebindings installed). I have patched it 
with configure.py.diff patch from Gentoo (without this patch, it is giving me 
TypeError: __init__() got an unexpected keyword argument 'builddir'). But it 
also failed:

An internal error occured.  Please report all output from the program,
including the following traceback, to the PyKDE mailing list

Traceback (most recent call last):
  File "configure.py", line 852, in ?
  File "configure.py", line 824, in main
    generate_code (module, pykde_imports [module], extra_lib = module)
  File "configure.py", line 676, in generate_code
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 939, in generate
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 934, in ready
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 1546, in finalise
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 1348, in finalise
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 594, in finalise
    qtincdir = self.optional_list("INCDIR_QT")
  File "/usr/lib/python2.4/site-packages/sipconfig.py", line 745, in 
    return self.__dict__[name].as_list()
KeyError: 'INCDIR_QT'
make: *** No targets specified and no makefile found.  Stop.

What am I doing wrong?

More information about the PyQt mailing list