[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    python dataengines
From:       Thomas Coopman <thomas.coopman () gmail ! com>
Date:       2009-01-23 18:35:15
Message-ID: 72ba78340901231035l197c0b99gadf8862f978f8074 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm trying to write a python plasmoid with a python dataengine,

the dataengine works in plasmaengineexplorer but if I connect to it in the
plasmoid and try that the PlasmoidViewer crashes (or Plasma if I try it in
plasma)

the problem is with this line:
self.dataEngine("plasma-dataengine-pytime")

this is tested with the plasma time engine
http://websvn.kde.org/branches/KDE/4.2/kdebase/workspace/plasma/scriptengines/python/examples/dataengines/pytime/contents/code/main.py?view=markup


I'm not reporting this as a bug because I don't know if that is even suppose
to work, but I would love it to work!

Thanks

this is the backtrace of the crash (I can get a backtrace of plasma crashing
too if you want)

Application: Plasma Widget Viewer (plasmoidviewer), signal SIGSEGV
0x00007fd6e5668cb0 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fd6e85af790 (LWP 434))]

Thread 1 (Thread 0x7fd6e85af790 (LWP 434)):
[KCrash Handler]
#5  0x00007fd6d11d427b in PyImport_GetModuleDict () from
/usr/lib64/libpython2.6.so.1.0
#6  0x00007fd6d11d12fc in PyImport_AddModule () from
/usr/lib64/libpython2.6.so.1.0
#7  0x00007fd6d11ddf27 in PyRun_SimpleStringFlags () from
/usr/lib64/libpython2.6.so.1.0
#8  0x00007fd6d148a06c in AppendToSysPath(QString) () from
/usr/lib64/kde4/kpythonpluginfactory.so
#9  0x00007fd6d148af05 in KPythonPluginFactory::create(char const*,
QWidget*, QObject*, QList<QVariant> const&, QString const&) () from
/usr/lib64/kde4/kpythonpluginfactory.so
#10 0x00007fd6e7c05e62 in ?? () from /usr/lib64/libplasma.so.3
#11 0x00007fd6e7c063fe in Plasma::loadScriptEngine(QString const&,
Plasma::DataEngine*) () from /usr/lib64/libplasma.so.3
#12 0x00007fd6e7bcd1ac in ?? () from /usr/lib64/libplasma.so.3
#13 0x00007fd6e7bcd251 in Plasma::DataEngine::DataEngine(QObject*,
KSharedPtr<KService>) () from /usr/lib64/libplasma.so.3
#14 0x00007fd6e7bcf45c in Plasma::DataEngineManager::loadEngine(QString
const&) () from /usr/lib64/libplasma.so.3
#15 0x00007fd6e7bab878 in Plasma::Applet::dataEngine(QString const&) const
() from /usr/lib64/libplasma.so.3
#16 0x00007fd6cfb4065b in meth_Plasma_Applet_dataEngine () from
/usr/lib64/python2.6/site-packages/PyKDE4/plasma.so
#17 0x00007fd6d11bcf28 in PyEval_EvalFrameEx () from
/usr/lib64/libpython2.6.so.1.0
#18 0x00007fd6d11bcb9f in PyEval_EvalFrameEx () from
/usr/lib64/libpython2.6.so.1.0
#19 0x00007fd6d11bcb9f in PyEval_EvalFrameEx () from
/usr/lib64/libpython2.6.so.1.0
#20 0x00007fd6d11c24c2 in PyEval_EvalCodeEx () from
/usr/lib64/libpython2.6.so.1.0
#21 0x00007fd6d115a098 in ?? () from /usr/lib64/libpython2.6.so.1.0
#22 0x00007fd6d1137ac9 in PyObject_Call () from
/usr/lib64/libpython2.6.so.1.0
#23 0x00007fd6d11444a7 in ?? () from /usr/lib64/libpython2.6.so.1.0
#24 0x00007fd6d1137ac9 in PyObject_Call () from
/usr/lib64/libpython2.6.so.1.0
#25 0x00007fd6d11bb138 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#26 0x00007fd6d07c68b5 in ?? () from
/usr/lib64/python2.6/site-packages/sip.so
#27 0x00007fd6d0a5138c in ?? () from
/usr/lib64/python2.6/site-packages/PyQt4/QtCore.so
#28 0x00007fd6cfae4644 in sipPlasma_AppletScript::init() () from
/usr/lib64/python2.6/site-packages/PyKDE4/plasma.so
#29 0x00007fd6e7badd49 in Plasma::Applet::init() () from
/usr/lib64/libplasma.so.3
#30 0x00007fd6e7bbe28e in Plasma::Containment::addApplet(Plasma::Applet*,
QPointF const&, bool) () from /usr/lib64/libplasma.so.3
#31 0x00007fd6e7bbe547 in ?? () from /usr/lib64/libplasma.so.3
#32 0x00000000004055bc in _start ()



-- 
Thomas Coopman
Thomas.coopman@gmail.com


[Attachment #5 (text/html)]

Hi,<br><br>I&#39;m trying to write a python plasmoid with a python \
dataengine,<br><br>the dataengine works in plasmaengineexplorer but if I connect to \
it in the plasmoid and try that the PlasmoidViewer crashes (or Plasma if I try it in \
plasma)<br> <br>the problem is with this \
line:<br>self.dataEngine(&quot;plasma-dataengine-pytime&quot;)<br><br>this is tested \
with the plasma time engine <a \
href="http://websvn.kde.org/branches/KDE/4.2/kdebase/workspace/plasma/scriptengines/py \
thon/examples/dataengines/pytime/contents/code/main.py?view=markup">http://websvn.kde. \
org/branches/KDE/4.2/kdebase/workspace/plasma/scriptengines/python/examples/dataengines/pytime/contents/code/main.py?view=markup</a><br>
 <br>I&#39;m not reporting this as a bug because I don&#39;t know if that is even \
suppose to work, but I would love it to work!<br><br>Thanks<br><br>this is the \
backtrace of the crash (I can get a backtrace of plasma crashing too if you want)<br> \
<br>Application: Plasma Widget Viewer (plasmoidviewer), signal \
SIGSEGV<br>0x00007fd6e5668cb0 in nanosleep () from /lib64/libc.so.6<br>[Current \
thread is 1 (Thread 0x7fd6e85af790 (LWP 434))]<br><br>Thread 1 (Thread 0x7fd6e85af790 \
(LWP 434)):<br> [KCrash Handler]<br>#5&nbsp; 0x00007fd6d11d427b in \
PyImport_GetModuleDict () from /usr/lib64/libpython2.6.so.1.0<br>#6&nbsp; \
0x00007fd6d11d12fc in PyImport_AddModule () from \
/usr/lib64/libpython2.6.so.1.0<br>#7&nbsp; 0x00007fd6d11ddf27 in \
PyRun_SimpleStringFlags () from /usr/lib64/libpython2.6.so.1.0<br> #8&nbsp; \
0x00007fd6d148a06c in AppendToSysPath(QString) () from \
/usr/lib64/kde4/kpythonpluginfactory.so<br>#9&nbsp; 0x00007fd6d148af05 in \
KPythonPluginFactory::create(char const*, QWidget*, QObject*, QList&lt;QVariant&gt; \
const&amp;, QString const&amp;) () from /usr/lib64/kde4/kpythonpluginfactory.so<br> \
#10 0x00007fd6e7c05e62 in ?? () from /usr/lib64/libplasma.so.3<br>#11 \
0x00007fd6e7c063fe in Plasma::loadScriptEngine(QString const&amp;, \
Plasma::DataEngine*) () from /usr/lib64/libplasma.so.3<br>#12 0x00007fd6e7bcd1ac in \
?? () from /usr/lib64/libplasma.so.3<br> #13 0x00007fd6e7bcd251 in \
Plasma::DataEngine::DataEngine(QObject*, KSharedPtr&lt;KService&gt;) () from \
/usr/lib64/libplasma.so.3<br>#14 0x00007fd6e7bcf45c in \
Plasma::DataEngineManager::loadEngine(QString const&amp;) () from \
/usr/lib64/libplasma.so.3<br> #15 0x00007fd6e7bab878 in \
Plasma::Applet::dataEngine(QString const&amp;) const () from \
/usr/lib64/libplasma.so.3<br>#16 0x00007fd6cfb4065b in meth_Plasma_Applet_dataEngine \
() from /usr/lib64/python2.6/site-packages/PyKDE4/plasma.so<br> #17 \
0x00007fd6d11bcf28 in PyEval_EvalFrameEx () from \
/usr/lib64/libpython2.6.so.1.0<br>#18 0x00007fd6d11bcb9f in PyEval_EvalFrameEx () \
from /usr/lib64/libpython2.6.so.1.0<br>#19 0x00007fd6d11bcb9f in PyEval_EvalFrameEx \
() from /usr/lib64/libpython2.6.so.1.0<br> #20 0x00007fd6d11c24c2 in \
PyEval_EvalCodeEx () from /usr/lib64/libpython2.6.so.1.0<br>#21 0x00007fd6d115a098 in \
?? () from /usr/lib64/libpython2.6.so.1.0<br>#22 0x00007fd6d1137ac9 in PyObject_Call \
() from /usr/lib64/libpython2.6.so.1.0<br> #23 0x00007fd6d11444a7 in ?? () from \
/usr/lib64/libpython2.6.so.1.0<br>#24 0x00007fd6d1137ac9 in PyObject_Call () from \
/usr/lib64/libpython2.6.so.1.0<br>#25 0x00007fd6d11bb138 in \
PyEval_CallObjectWithKeywords () from /usr/lib64/libpython2.6.so.1.0<br> #26 \
0x00007fd6d07c68b5 in ?? () from /usr/lib64/python2.6/site-packages/sip.so<br>#27 \
0x00007fd6d0a5138c in ?? () from \
/usr/lib64/python2.6/site-packages/PyQt4/QtCore.so<br>#28 0x00007fd6cfae4644 in \
sipPlasma_AppletScript::init() () from \
/usr/lib64/python2.6/site-packages/PyKDE4/plasma.so<br> #29 0x00007fd6e7badd49 in \
Plasma::Applet::init() () from /usr/lib64/libplasma.so.3<br>#30 0x00007fd6e7bbe28e in \
Plasma::Containment::addApplet(Plasma::Applet*, QPointF const&amp;, bool) () from \
/usr/lib64/libplasma.so.3<br> #31 0x00007fd6e7bbe547 in ?? () from \
/usr/lib64/libplasma.so.3<br>#32 0x00000000004055bc in _start ()<br><br><br \
clear="all"><br>-- <br>Thomas Coopman<br><a \
href="mailto:Thomas.coopman@gmail.com">Thomas.coopman@gmail.com</a><br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic