[PyQt] Next Releases

Dmitry Shachnev mitya57 at ubuntu.com
Mon Sep 8 12:49:17 BST 2014


Hi all,

On Mon, Sep 8, 2014 at 3:27 PM, Georg Brandl <g.brandl at gmx.net> wrote:
>> One of my fellow Debian/Ubuntu developers (mitya57) tried to reproduce this
>> and got results like yours.   He'll report to the lost after some additional
>> investigation.
>
> Note that if you run "plugins.py" from the examples directory, you won't see the
> ImportError message since plugins.py doesn't forward the output of designer.
>
> You'll have to do something like
>
> PYQTDESIGNERPATH=`pwd`/python PYTHONPATH=`pwd`/widgets designer

I have just figured this out myself and got the same error message:

ImportError: /usr/lib/python3/dist-packages/sip.cpython-34m-i386-linux-gnu.so:
undefined symbol: PyProperty_Type

The stack trace when that error is printed is:

#0  PyErr_Display (exception=0xb1c1e700
<_PyExc_ImportError.lto_priv.2090>, value=0xae306dbc, tb=0xb1c28c90
<_Py_NoneStruct>)
    at ../Python/pythonrun.c:2053
#1  0xb195a07b in sys_excepthook (self=0xae3d97d4, args=0xae30d93c) at
../Python/sysmodule.c:230
#2  0xb190deb3 in PyCFunction_Call (func=0xae3da2cc, arg=0xae30d93c,
kw=0x0) at ../Objects/methodobject.c:93
#3  0xb18c2226 in PyObject_Call (func=0xae3da2cc, arg=0xae30d93c,
kw=0x0) at ../Objects/abstract.c:2067
#4  0xb19d044c in PyEval_CallObjectWithKeywords (func=0xae3da2cc,
arg=0xae30d93c, kw=0x0) at ../Python/ceval.c:4111
#5  0xb19b7497 in PyErr_PrintEx (set_sys_last_vars=1) at
../Python/pythonrun.c:1844
#6  0xb19b7786 in PyErr_Print () at ../Python/pythonrun.c:1718
#7  0xb1c79316 in PyCustomWidgets::getModuleAttr (module=0xb1c7b809
"sip", attr=0xb1c7b7fa "unwrapinstance") at
../../designer/pluginloader.cpp:292
#8  0xb1c78ac4 in PyCustomWidgets::PyCustomWidgets (this=0x82565f8,
parent=0x0) at ../../designer/pluginloader.cpp:141
#9  0xb1c7b127 in qt_plugin_instance () at moc_pluginloader.cpp:163
#10 0xb665c9dd in QPluginLoader::instance (this=0xbffff070) at
plugin/qpluginloader.cpp:200
#11 0xb7835119 in QDesignerPluginManager::instance(QString const&)
const () from /usr/lib/i386-linux-gnu/libQt5Designer.so.5
#12 0xb7835653 in QDesignerPluginManager::instances() const () from
/usr/lib/i386-linux-gnu/libQt5Designer.so.5

where line 141 of pluginloader.cpp is:

141                sip_unwrapinstance = getModuleAttr("sip", "unwrapinstance");

Hope that helps,

--
Dmitry Shachnev


More information about the PyQt mailing list