[PyQt] chapter6-plugins example does not work with fresh build or wheel

Russell Warren russ at perspexis.com
Wed Feb 8 18:13:29 GMT 2017


Just in case, I added the dir with libpython3.5m.so.1.0 in it to
/etc/ld.so.conf (rather than using LD_LIBRARY_PATH), but I get the same
error.

I also confirmed (with scanelf) that the PyExc_RuntimeError symbol *should*
be available in libpython3.5m.so.1.0, so I really don't know what is going
on here.

I'm pretty much unable to dig further here due to being at the edge of my
knowledge of how this all fits together.  Any help would be appreciated on
where else I can dig in order to make this QQmlExtensionPlugin work.

$ scanelf -l -s PyExc_RuntimeError | grep PyExc_RuntimeError
ET_DYN PyExc_RuntimeError /home/russ/miniconda3/envs/qtclient/lib/
*libpython3.5m.so.1.0*
ET_DYN PyExc_RuntimeError
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.55.0
ET_DYN PyExc_RuntimeError /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
ET_DYN PyExc_RuntimeError /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
ET_DYN PyExc_RuntimeError
/usr/lib/x86_64-linux-gnu/libboost_python-py34.so.1.55.0
$ QML2_IMPORT_PATH=. qmlscene app.qml
ImportError: PyCapsule_Import could not import module "sip"
Traceback (most recent call last):
  File
"/home/russ/code/PyQt5_gpl-5.7.1/examples/quick/tutorials/extending/chapter6-plugins/Charts/chartsplugin.py",
line 41, in <module>
    from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin
ImportError:
/home/russ/miniconda3/envs/qtclient/lib/python3.5/site-packages/PyQt5/QtQml.so:
*undefined symbol: PyExc_RuntimeError*
file:///home/russ/code/PyQt5_gpl-5.7.1/examples/quick/tutorials/extending/chapter6-plugins/app.qml:42
module "Charts" is not installed

Thanks,
Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170208/b6e53610/attachment-0001.html>


More information about the PyQt mailing list