[PyKDE] SIP error while building PyKDE

Jennifer King roguedragon at merging.org
Thu Mar 25 16:09:01 GMT 2004


Hello all,

I'm new to this list as well as PyKDE/PyQT/SIP, so please forgive any 
stupidity here.
On to the point...

I'm trying to get PyKDE installed on a FreeBSD4.8 system. After fighting 
with things for a couple days, I finally have PyQT & SIP installed, and 
I've fought my way through PyKDE's installation, but finally ran into a 
problem I can't figure out exactly how to fix. Hopefully, someone here 
will know what to do.

Build output:
---------------------------------------------------------------------------------------
dragon# python build.py -q /ufs/usr/X11R6 -v /usr/local/share/sip -o 
/ufs/usr/local/lib -n /ufs/usr/local/include -g /usr/local/bin/qmake -unone

Building PyKDE 3.8 on freebsd4.

Python version is 2.3
Python parent directory is /usr/local/lib/python2.3
Python library directory is /usr/local/lib/python2.3/config
Python include directory is /usr/local/include/python2.3

Home directory is /root

sip code generator path (sip) is /usr/local/bin
sip version is 3.10.1
sip lib directory (libsip*) is /usr/local/lib/python2.3/site-packages
sip include directory (sipQt.h) is /usr/local/include/python2.3

Qt3 parent directory is /ufs/usr/X11R6
Qt3 lib directory (libqt-mt.so.3) is /ufs/usr/X11R6/lib
Qt3 include directory (qglobal.h) is /ufs/usr/X11R6/include
Qt version is 3.2.3

PyQt lib directory is /usr/local/lib/python2.3/site-packages
PyQt lib version is 3.11
PyQt sip files directory is /usr/local/share/sip/PyQt-x11-gpl-3.11/sip
PyQt sip version is 3.11.0

KDE3 parent directory is /usr
KDE3 library directory (libkdecore.so) is /ufs/usr/local/lib
KDE3 include directory (kapplication.h) is /ufs/usr/local/include
KDE version is 3.2.0

make program is make
Makefile generator path (qmake) is /usr/local/bin
Install directory is /usr/local/lib/python2.3/site-packages

sip version (3.10.1) not compatible with this version (3.8) -- ignored
PyQt sip files version (3.11.0) not compatible with this version 
(3.10.1) -- ignored
PyQt sip files version (3.11) not compatible with this version (3.8) -- 
ignored
/n*** WARNING *** possibile version mismatch ignored

Qt thread support is enabled.

/usr/local/bin/qmake -o Makefile qttest.pro
Checking to see if the C++ compiler supports -fno-exceptions.
c++ -c -pipe -w -O -pipe -D_THREAD_SAFE  -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -fno-exceptions 
-I/usr/local/share/qt/mkspecs/freebsd-g++ -I. -I. 
-I../../local/include/python2.3 -I../../X11R6/include 
-I../../local/include -I../../local/include -I/ufs/usr/X11R6/include -o 
qttest.o qttest.cpp
c++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/ufs/usr/X11R6/lib -pthread -o 
qttest qttest.o   -L/usr/local/lib -L/ufs/usr/X11R6/lib -L/usr/X11R6/lib 
-lqt-mt -lXext -lX11 -lm
/usr/lib/libc.so.4: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider 
using mkstemp()
/usr/lib/libc.so.4: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so.4: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider 
using mkstemp()
/usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is 
not recommended.
/usr/lib/libc.so.4: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so.4: warning: tempnam() possibly used unsafely; consider 
using mkstemp()
make
The C++ compiler supports -fno-exceptions.

Using existing features file.

Generating the Makefile for the pythonize module.
(rm -f pythonize/*.o)
(cd pythonize >/dev/null && /usr/local/bin/qmake -o Makefile pythonize.pro)
Generating the Makefile for the pythonize/test module.
(rm -f pythonize/test/*.o)
(cd pythonize/test >/dev/null && /usr/local/bin/qmake -o Makefile 
testPythonize.pro)
Generating the Makefile for the pykpanelapplet module.
(rm -f pykpanelapplet/*.o)
(rm -f pykpanelapplet/moc*)
(cd pykpanelapplet >/dev/null && /usr/local/bin/qmake -o Makefile 
pykpanelapplet.pro)

Generating the C++ source for the dcop module.
(rm -rf ../libs/libdcop*)
(Qt_3_2_0 KDE_3_1_4)
(/usr/local/bin/sip ['-t', 'WS_X11', '-t', 'Qt_3_2_0', '-t', 
'KDE_3_1_4', '-z', 'features', '-I', 'sip', '-I', 
'/usr/local/share/sip/PyQt-x11-gpl-3.11/sip', '-m', 'dcop/dcop.pro', 
'-c', 'dcop', 'dcop-kde314.sip'])
(/usr/local/bin/sip -t WS_X11 -t Qt_3_2_0 -t KDE_3_1_4 -z features -I 
sip -I /usr/local/share/sip/PyQt-x11-gpl-3.11/sip -m dcop/dcop.pro -c 
dcop dcop-kde314.sip)
(/usr/local/bin/python postproc -p dcop -o tr *.cpp)
Generating the Makefile for the dcop module.
Concatenating the C++ files for the dcop module.
(cd dcop >/dev/null && /usr/local/bin/qmake -o Makefile dcop.pro)
Compiling dcop.py.

Generating the C++ source for the kdecore module.
(rm -rf ../libs/libkdecore*)
(Qt_3_2_0 KDE_3_1_4)
(/usr/local/bin/sip ['-t', 'WS_X11', '-t', 'Qt_3_2_0', '-t', 
'KDE_3_1_4', '-z', 'features', '-I', 'sip', '-I', 
'/usr/local/share/sip/PyQt-x11-gpl-3.11/sip', '-m', 
'kdecore/kdecore.pro', '-c', 'kdecore', 'kdecore-kde314.sip'])
sip: sip/kcharsets.sip:39: syntax error
(/usr/local/bin/sip -t WS_X11 -t Qt_3_2_0 -t KDE_3_1_4 -z features -I 
sip -I /usr/local/share/sip/PyQt-x11-gpl-3.11/sip -m kdecore/kdecore.pro 
-c kdecore kdecore-kde314.sip)
/usr/local/bin/sip failed with an exit code of 256.


An internal error occured.  Review the installation documentation or
report all the output from the program, including the traceback,
to the PyKDE mailing list: <pykde at mats.imk.fraunhofer.de>. Thanks.


Traceback (most recent call last):
  File "build.py", line 1042, in ?
    main (sys.argv)
  File "build.py", line 1035, in main
    generateSipLibs (siplibs)
  File "build.py", line 915, in generateSipLibs
    generateSipLib (mod, platformTag, qtTag)
  File "build.py", line 694, in generateSipLib
    runProgram (dis.sipBin.bin, argv)
  File "build.py", line 135, in runProgram
    raise   # force traceback and exit
TypeError: exceptions must be classes, instances, or strings 
(deprecated), not NoneType

--------------------------------------------------------------------

Note: Lines enclosed in ()'s are there for debugging.

Anyways, my kdecore directory is empty, and I've tried running the sip call from the command line, with and without the kdecore directory things, and got the same error:

dragon# sip -t WS_X11 -t Qt_3_2_0 -t KDE_3_1_4 -z features -I sip -I /usr/local/share/sip/PyQt-x11-gpl-3.11/sip kdecore-kde314.sip
sip: sip/kcharsets.sip:39: syntax error

Line 39 of kcharsets.sip:
QTextCodec*          codecForName (const QString&, bool&) const/PyName=codecForName2/;


Anyone have any ideas on how to fix this?

Thanks in advance!
-- Jen
-----
RogueDragon @ A Merging of Fates MUD
telnet://mud.merging.org:5454
icq: 2072355 (inactive atm), yim: roguedragon, aim: roguedragon69
---
Windows - Where do you want to go today?
Linux   - Where do you want to go tomorrow?
FreeBSD - When are they going to catch up?
---
if( os == "Windows" )
    break;
else if( os == "Linux" )
    return( disk2coasterspool );
else if( os == "FreeBSD" )
    continue;




More information about the PyQt mailing list