[PyKDE] Installation errors in suse 9.0

Shourya P. Bhattacharya shourya at it.iitb.ac.in
Sun Nov 9 12:41:01 GMT 2003


Hi,
I am unable to install PyKDE 3.8.0 on suse 9.0.  I have downloaded and 
compiled sip3.8 and PyQt3.8.1. but when I try to install PyKDE, the make 
file generated by build.py does not compile  and  throws errors.  It 
says it cannot find  Python.h (it is looking in /usr/include/python2.2) 
but the file is present in /usr/include/python2.3.     Does PyKde 
compile only with python 2.2?
shourya


The output of make is as follows

cd pythonize && "make" -f Makefile
make[1]: Entering directory 
`/Samba/share/Softwares/karamba/PyKDE-3.8.0/pythonize'
g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -w -O2 
-march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -fPIC   -fno-exceptions 
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include/python2.3 -I. 
-I/usr/include -o pythonize.o pythonize.cpp
test -d ../libs/ || mkdir -p ../libs/
rm -f libpythonize.so.1.0.0 libpythonize.so libpythonize.so.1 
libpythonize.so.1.0
g++ -shared -Xlinker -export-dynamic -Wl,-E 
-Wl,-soname,libpythonize.so.1 -o libpythonize.so.1.0.0 pythonize.o   
-L/usr/lib/ -L /usr/lib/python2.3/config -lpython2.3 -lutil -lpthread -ldl
ln -s libpythonize.so.1.0.0 libpythonize.so
ln -s libpythonize.so.1.0.0 libpythonize.so.1
ln -s libpythonize.so.1.0.0 libpythonize.so.1.0
rm -f ../libs/libpythonize.so.1.0.0
rm -f ../libs/libpythonize.so
rm -f ../libs/libpythonize.so.1
rm -f ../libs/libpythonize.so.1.0
mv -f libpythonize.so.1.0.0 libpythonize.so libpythonize.so.1 
libpythonize.so.1.0 ../libs/
make[1]: Leaving directory 
`/Samba/share/Softwares/karamba/PyKDE-3.8.0/pythonize'
cd pythonize/test && "make" -f Makefile
make[1]: Entering directory 
`/Samba/share/Softwares/karamba/PyKDE-3.8.0/pythonize/test'
g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -w -O2 
-march=i586 -mcpu=i686 -fmessage-length=0 -fPIC   -fno-exceptions 
-I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/include/python2.2 
-I/opt/kde3/include -I.. -I/usr/include -o testPythonize.o testPythonize.cpp
testPythonize.cpp:20:20: Python.h: No such file or directory
In file included from testPythonize.cpp:21:
../pythonize.h:27:20: Python.h: No such file or directory
In file included from testPythonize.cpp:21:
../pythonize.h:32: error: type specifier omitted for parameter `PyObject'
../pythonize.h:32: error: parse error before `*' token
../pythonize.h:35: error: syntax error before `*' token
../pythonize.h: In destructor `ObjectRef::~ObjectRef()':
../pythonize.h:33: error: `object' undeclared (first use this function)
../pythonize.h:33: error: (Each undeclared identifier is reported only 
once for each function it appears in.)
../pythonize.h:33: error: `Py_XDECREF' undeclared (first use this function)
../pythonize.h: At global scope:
../pythonize.h:51: error: syntax error before `*' token
../pythonize.h:55: error: syntax error before `*' token
../pythonize.h:57: error: ISO C++ forbids defining types within return type
../pythonize.h:57: error: syntax error before `*' token
../pythonize.h:58: error: syntax error before `*' token
../pythonize.h: In function `void setMainModule()':
../pythonize.h:61: error: `mainModule' undeclared (first use this function)
../pythonize.h:61: error: `PyImport_ImportModule' undeclared (first use 
this function)
../pythonize.h: In function `bool getPythonInit()':
../pythonize.h:62: error: `pythonInit' undeclared (first use this function)
../pythonize.h: At global scope:
../pythonize.h:65: error: `PyObject' was not declared in this scope
../pythonize.h:65: error: variable or field `decref' declared void
../pythonize.h:65: error: syntax error before `{' token
../pythonize.h:74: error: syntax error before `*' token
../pythonize.h:79: error: syntax error before `*' token
../pythonize.h:80: error: syntax error before `*' token
../pythonize.h:84: error: syntax error before `*' token
../pythonize.h:85: error: syntax error before `*' token
../pythonize.h:88: error: parse error before `}' token
../pythonize.h:100: error: syntax error before `*' token
../pythonize.h:104: error: syntax error before `*' token
../pythonize.h:106: error: syntax error before `*' token
../pythonize.h:107: error: syntax error before `*' token
../pythonize.h:110: error: new declaration `void* setMainModule()'
../pythonize.h:61: error: ambiguates old declaration `void setMainModule()'
../pythonize.h:62: error: previous declaration of `bool getPythonInit()' 
with C++ linkage
../pythonize.h:111: error: conflicts with new declaration with C linkage
../pythonize.h:114: error: `PyObject' was not declared in this scope
../pythonize.h:114: error: variable or field `decref' declared void
../pythonize.h:114: error: redefinition of `int decref'
../pythonize.h:65: error: `int decref' previously defined here
../pythonize.h:68: error: previous declaration of `bool 
runScript(char*)' with C++ linkage
../pythonize.h:117: error: conflicts with new declaration with C linkage
../pythonize.h:71: error: previous declaration of `bool 
runString(char*)' with C++ linkage
../pythonize.h:120: error: conflicts with new declaration with C linkage
../pythonize.h:123: error: syntax error before `*' token
../pythonize.h:77: error: previous declaration of `void releaseLock()' 
with C++ linkage
../pythonize.h:125: error: conflicts with new declaration with C linkage
../pythonize.h:78: error: previous declaration of `void acquireLock()' 
with C++ linkage
../pythonize.h:126: error: conflicts with new declaration with C linkage
In file included from testPythonize.cpp:22:
testPythonize.h:59: error: syntax error before `*' token
testPythonize.h:60: error: syntax error before `*' token
testPythonize.h:99: error: syntax error before `*' token
testPythonize.h:100: error: syntax error before `*' token
testPythonize.cpp: In constructor `TestPythonize::TestPythonize()':
testPythonize.cpp:34: error: `getPythonInit' undeclared (first use this 
function)
testPythonize.cpp:39: error: `setMainModule' undeclared (first use this 
function)
testPythonize.cpp:40: error: `getSysModule' undeclared (first use this 
function)
testPythonize.cpp:41: error: `getMainModule' undeclared (first use this 
function)
testPythonize.cpp: In member function `bool 
TestPythonize::testAppendToSysPath()':
testPythonize.cpp:52: error: `Py_GetPath' undeclared (first use this 
function)
testPythonize.cpp:54: error: `PyObject' undeclared (first use this function)
testPythonize.cpp:54: error: `pathList' undeclared (first use this function)
testPythonize.cpp:54: error: `getSysModule' undeclared (first use this 
function)
testPythonize.cpp:54: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:57: error: `PyList_GET_SIZE' undeclared (first use 
this function)
testPythonize.cpp:60: error: `PyList_GetItem' undeclared (first use this 
function)
testPythonize.cpp:60: error: `PyString_AsString' undeclared (first use 
this function)
testPythonize.cpp:63: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonize::testImportModule()':
testPythonize.cpp:70: error: `impModule' undeclared (first use this 
function)
testPythonize.cpp:70: error: `importModule' undeclared (first use this 
function)
testPythonize.cpp: In member function `bool 
TestPythonize::testGetNewObjectRef()':
testPythonize.cpp:78: error: `pyAdd' undeclared (first use this function)
testPythonize.cpp:78: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:81: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool TestPythonize::testRunScript()':
testPythonize.cpp:88: error: `runScript' undeclared (first use this 
function)
testPythonize.cpp: In member function `bool TestPythonize::testRunString()':
testPythonize.cpp:95: error: `runString' undeclared (first use this 
function)
testPythonize.cpp:96: error: `pyX' undeclared (first use this function)
testPythonize.cpp:96: error: `getMainModule' undeclared (first use this 
function)
testPythonize.cpp:96: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:97: error: `PyInt_AsLong' undeclared (first use this 
function)
testPythonize.cpp:99: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonize::testRunFunction()':
testPythonize.cpp:106: error: `addArgs' undeclared (first use this function)
testPythonize.cpp:106: error: `Py_BuildValue' undeclared (first use this 
function)
testPythonize.cpp:107: error: `o' undeclared (first use this function)
testPythonize.cpp:107: error: `runFunction' undeclared (first use this 
function)
testPythonize.cpp:109: error: `PyInt_Check' undeclared (first use this 
function)
testPythonize.cpp:113: error: `PyInt_AS_LONG' undeclared (first use this 
function)
testPythonize.cpp:117: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testAppendToSysPath()':
testPythonize.cpp:184: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:187: error: `PyList_GET_SIZE' undeclared (first use 
this function)
testPythonize.cpp:190: error: `PyList_GetItem' undeclared (first use 
this function)
testPythonize.cpp:190: error: `PyString_AsString' undeclared (first use 
this function)
testPythonize.cpp:193: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testImportModule()':
testPythonize.cpp:200: error: `importModule' undeclared (first use this 
function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testGetNewObjectRef()':
testPythonize.cpp:208: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:211: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testRunScript()':
testPythonize.cpp:218: error: `runScript' undeclared (first use this 
function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testRunString()':
testPythonize.cpp:225: error: `runString' undeclared (first use this 
function)
testPythonize.cpp:226: error: `getNewObjectRef' undeclared (first use 
this function)
testPythonize.cpp:227: error: `PyInt_AsLong' undeclared (first use this 
function)
testPythonize.cpp:229: error: `decref' undeclared (first use this function)
testPythonize.cpp: In member function `bool 
TestPythonizeC::testRunFunction()':
testPythonize.cpp:236: error: `Py_BuildValue' undeclared (first use this 
function)
testPythonize.cpp:237: error: `runFunction' undeclared (first use this 
function)
testPythonize.cpp:239: error: `PyInt_Check' undeclared (first use this 
function)
testPythonize.cpp:243: error: `PyInt_AS_LONG' undeclared (first use this 
function)
testPythonize.cpp:246: error: `decref' undeclared (first use this function)
{standard input}: Assembler messages:
{standard input}:19: Error: symbol `decref' is already defined
make[1]: *** [testPythonize.o] Error 1
make[1]: Leaving directory 
`/Samba/share/Softwares/karamba/PyKDE-3.8.0/pythonize/test'
make: *** [sub-pythonize-test] Error 2






More information about the PyQt mailing list