Bug 219397 - PyKDE and plasma for beta1
Summary: PyKDE and plasma for beta1
Status: RESOLVED NOT A BUG
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-20 10:03 UTC by BRULE Herman
Modified: 2010-01-09 15:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2009-12-20 10:03:31 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Hello, PyKDE and plasma seam have bug in version beta1:
In file included from /usr/include/python2.6/Python.h:8,                                                                                                                                                                                     
                 from /usr/include/python2.6/sip.h:33,                                                                                                                                                                                       
                 from /var/tmp/portage/kde-base/pykde4-4.3.82/work/pykde4-4.3.82-2.6_build/python/pykde4/sip/plasma/sipAPIplasma.h:11,                                                                                                       
                 from /var/tmp/portage/kde-base/pykde4-4.3.82/work/pykde4-4.3.82-2.6_build/python/pykde4/sip/plasma/sipplasmapart4.cpp:7:                                                                                                    
/usr/include/python2.6/pyconfig.h:1073:1: warning: "_XOPEN_SOURCE" redefined                                                                                                                                                                 
<command-line>: warning: this is the location of the previous definition                                                                                                                                                                     
sipplasmapart4.cpp: In function 'PyObject* meth_Plasma_RunnerManager_enabledSingleModeRunnerIds(PyObject*, PyObject*)':                                                                                                                      
sipplasmapart4.cpp:6858: error: 'class Plasma::RunnerManager' has no member named 'enabledSingleModeRunnerIds'                                                                                                                               
make[2]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_plasma.dir/sip/plasma/sipplasmapart4.o] Error 1                                                                                                                                  
make[2]: *** Waiting for unfinished jobs....                                                                                                                                                                                                 
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_plasma.dir/all] Error 2                                                                                                                                                          
make: *** [all] Error 2 
Can you fix it?
Comment 1 BRULE Herman 2010-01-09 12:49:05 UTC
Bug too for the rc1:
/var/tmp/portage/kde-base/pykde4-4.3.90/work/pykde4-4.3.90-2.6/python/pykde4/sip/ktexteditor/markinterface.sip: In function 'PyObject* convertFrom_QHash_1800_0101KTextEditor_Mark(void*, PyObject*)':                                       
/var/tmp/portage/kde-base/pykde4-4.3.90/work/pykde4-4.3.90-2.6/python/pykde4/sip/ktexteditor/markinterface.sip:165: warning: suggest explicit braces to avoid ambiguous 'else'                                                               
sipktexteditorpart4.cpp: In member function 'virtual QObject* sipKTextEditor_Factory::createObject(QObject*, const char*, const QStringList&)':                                                                                              
sipktexteditorpart4.cpp:1659: warning: 'virtual QObject* KPluginFactory::createObject(QObject*, const char*, const QStringList&)' is deprecated (declared at /usr/include/kpluginfactory.h:415)                                              
sipktexteditorpart4.cpp: In member function 'QObject* sipKTextEditor_Factory::sipProtectVirt_createObject(bool, QObject*, const char*, const QStringList&)':                                                                                 
sipktexteditorpart4.cpp:1853: warning: 'virtual QObject* KPluginFactory::createObject(QObject*, const char*, const QStringList&)' is deprecated (declared at /usr/include/kpluginfactory.h:415)                                              
sipktexteditorpart4.cpp: In function 'PyObject* meth_KTextEditor_Factory_create(PyObject*, PyObject*)':                                                                                                                                      
sipktexteditorpart4.cpp:2064: warning: 'QObject* KPluginFactory::create(QObject*, const char*, const QStringList&)' is deprecated (declared at /usr/include/kpluginfactory.h:342)                                                            
sipktexteditorpart4.cpp: In member function 'bool sipKTextEditor_Document::sipProtect_isLocalFileTemporary() const':                                                                                                                         
sipktexteditorpart4.cpp:8438: warning: 'bool KParts::ReadOnlyPart::isLocalFileTemporary() const' is deprecated (declared at /usr/include/kparts/part.h:686)                                                                                  
sipktexteditorpart4.cpp: In member function 'void sipKTextEditor_Document::sipProtect_setLocalFileTemporary(bool)':                                                                                                                          
sipktexteditorpart4.cpp:8443: warning: 'void KParts::ReadOnlyPart::setLocalFileTemporary(bool)' is deprecated (declared at /usr/include/kparts/part.h:691)                                                                                   
sip: QAbstractAnimation has not been defined                                                                                                                                                                                                 
make[2]: *** [python/pykde4/sip/plasma/sipplasmapart0.cpp] Error 1                                                                                                                                                                           
[ 75%] make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_plasma.dir/all] Error 2                                                                                                                                                   
make[1]: *** Waiting for unfinished jobs....
Comment 2 Arno Rehn 2010-01-09 14:29:36 UTC
You need to have the latest PyQt (the one that supports Qt 4.6) to compiler PyKDE. We still need to bump the required PyQt version.
Comment 3 BRULE Herman 2010-01-09 14:48:46 UTC
I have test pykde 4.3.90 with Qt 4.6.
Comment 4 BRULE Herman 2010-01-09 14:49:37 UTC
I have test pykde 4.3.90 with Qt 4.6.
Comment 5 Arno Rehn 2010-01-09 14:57:16 UTC
You also need the latest PyQt and SIP versions. We already have discussed this on the mailing list. Latest PyQt/SIP snapshots are reported to work. Closing this as invalid.

For reference, see this: http://lists.kde.org/?l=kde-bindings&m=126292995107792&w=2
Comment 6 BRULE Herman 2010-01-09 15:04:43 UTC
I have sip 4.9.3-r1 and pyqt4 4.6.2, what version is wrong?
Comment 7 Arno Rehn 2010-01-09 15:12:27 UTC
sip: QAbstractAnimation has not been defined

I guess you need a current development snapshot of PyQt and SIP. The official documentation doesn't mention QAbstractAnimation yet (though PyKDE needs it). Try a development snapshot, they're available as tarballs on http://www.riverbankcomputing.co.uk/software/pyqt/download .
Comment 8 BRULE Herman 2010-01-09 15:14:41 UTC
This dep can be added to the cmake file?
Comment 9 Arno Rehn 2010-01-09 15:24:18 UTC
Yes. But I don't know what the version string of these development snapshots is. The maintainer of PyKDE will probably change the required version in time for KDE 4.4.0 final.
Comment 10 BRULE Herman 2010-01-09 15:47:04 UTC
Same with the snapshot version.
Cli used for the compilation (given by gentoo), for PyQt4:
python2.6 configure.py --confirm-license --bindir=/usr/bin --destdir=/usr/lib64/python2.6/site-packages --sipdir=/usr/share/sip --enable=QtCore --enable=QtNetwork --enable=QtScript --enable=QtTest --enable=QtXml --enable=QtGui --enable=QtDesigner --enable=QtScriptTools --enable=QtOpenGL --enable=QtSql --enable=QtSvg --enable=QtWebKit CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ LINK=x86_64-pc-linux-gnu-g++ LINK_SHLIB=x86_64-pc-linux-gnu-g++ CFLAGS='-pipe -march=native -O2 -msse -msse2 -msse3 -msse4a -fomit-frame-pointer -falign-functions=64 -floop-block -floop-interchange -fgraphite -g -ggdb' CXXFLAGS='-pipe -march=native -O2 -msse -msse2 -msse3 -msse4a -fomit-frame-pointer -falign-functions=64 -floop-block -floop-interchange -fgraphite -g -ggdb' LFLAGS='-Wl,-O1'
For sip:
python2.6 configure.py --bindir=/usr/bin --destdir=/usr/lib64/python2.6/site-packages --incdir=/usr/include/python2.6 --sipdir=/usr/share/sip CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ LINK=x86_64-pc-linux-gnu-g++ LINK_SHLIB=x86_64-pc-linux-gnu-g++ CFLAGS='-pipe -march=native -O2 -msse -msse2 -msse3 -msse4a -fomit-frame-pointer -falign-functions=64 -floop-block -floop-interchange -fgraphite -g -ggdb' CXXFLAGS='-pipe -march=native -O2 -msse -msse2 -msse3 -msse4a -fomit-frame-pointer -falign-functions=64 -floop-block -floop-interchange -fgraphite -g -ggdb' LFLAGS='-Wl,-O1' STRIP=true