[PyKDE] Re: PyKDE 3.11.2 sip syntax error
dlfreed at charter.net
Sun Aug 22 02:08:48 BST 2004
OK I managed to compile and install 3.11.2 by upgrading to sip 4.0.1.
I compiled and install sip for both my qt and qt-mt, perhaps this is my
When I import any of the PyKDE modules I get this error:
Python 2.3.3 (#1, Apr 6 2004, 01:47:39)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import kdecore
Traceback (most recent call last):
File "<stdin>", line 1, in ?
RuntimeError: the qt module failed to register with the sip module
Pure PyQT apps seem to run OK still.
Does anyone have any ideas?
On Saturday 21 August 2004 6:58 pm, Jim Bublitz wrote:
> On Saturday 21 August 2004 15:10, Dan Freed wrote:
> > There appears to be a syntax error in one of the khtml sip files in the
> > current release. Here is the output I get from the configure.py script:
> > dfreed at wintermute:~/downloads/PyKDE-3.11.2> python ./configure.py
> > PyKDE version 3.11.2
> > -------
> > sip version is 3.10.2 (3.10.2)
> > KDE version is 3.3.0 (0x30300)
> > Generating the C++ source for the khtml module...
> > sip: sip/khtml/khtml_part.sip:135: syntax error
> > Error: Unable to create the C++ code.
> In sip/khtml/khtml_part.sip.330 (note the ** .330 **) change the
> initialization for the enumerators to:
> enum FindOptions
> FindLinksOnly = 65536,
> FindNoPopups = 131072
> Apparently sip 3.10.2 doesn't like the computation. It works with sip4,
> which is the only way I tested it with KDE 3.3.0.
> configure.py will handle creating the correct khtml_part.sip (which is why
> editing it made no difference - it got overwritten when you ran
> configure.py). There is a problem with khtml requiring kutils in KDE
> >=3.3.0 but not in KDE < 3.3.0 that requires the hack to configure.py.
> To summarize, you only need to apply this fix IF:
> 1. You're building against KDE 3.3.0
> 2. You're using sip 3.10.2
> I'll send a patched tarball to Phil for posting in a few days after seeing
> if any other bugs turn up. Probably won't change the version number unless
> some major fix is needed.
More information about the PyQt