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/python/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>