[PyKDE] Installation errors in suse 9.0

Jim Bublitz jbublitz at nwinternet.com
Mon Nov 10 03:05:01 GMT 2003


On Sunday November 9 2003 03:46, Shourya P. Bhattacharya wrote:
> 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..
    ^^^^^^^^^^^^^^^
The error is in the makefile generated for the unit tests for 
libpythonize.  I didn't catch this because the only machine I 
test built on with Python 2.3 also has 2.2. Note that the first 
compile step has the correct -I; later steps (after the failure) 
should also.

You can go into pythonize/test/Makefile and in the INCPATH 
variable, change 2.2 to 2.3. Alternatively, you can go into the 
top-level Makefile and remove the references to 
'sub-pythonize-test' (don't forget the second line of the 
target). 

In either case, don't run build.py after making the changes (or 
make the changes each time you run build.py). Or else fix the 
.pro file in pythonize/test, which is where the error really is.

Jim




More information about the PyQt mailing list