[PyKDE] Error: already an enum in scope with the same Python name

Jim Bublitz jbublitz at nwinternet.com
Tue Aug 1 17:38:44 BST 2006


On Tuesday 01 August 2006 00:21, jeason wrote:


> Generating the C++ source for the kdecore module...
> sip: sip/kdecore/netwm_def.sip:410: There is already an enum in scope
> with the same Python name
> Error: Unable to create the C++ code.

In sip//kdecore/netwm_def.sip, beginning at line 305, delete or comment out 
(//) the entire enum Property2 (as shown here):

    enum Property2
    {
        WM2UserTime, 
        WM2StartupId, 
        WM2TransientFor, 
        WM2GroupLeader, 
        WM2AllowedActions, 
        WM2RestackWindow, 
        WM2MoveResizeWindow, 
        WM2ExtendedStrut, 
        WM2TakeActivity, 
        WM2KDETemporaryRules, 
        WM2WindowClass, 
        WM2WindowRole, 
        WM2ClientMachine, 
        WM2ShowingDesktop
    };

It's a mistake in versioning which only affects KDE 3.5.0

Jim




More information about the PyQt mailing list