<div dir="ltr">Since I suspected the '5.8' in the nightly snapshot, I just rebuilt PyQt5 using the 5.7.1 version. I also rebuilt sip for good measure.<div><br></div><div>Same problem: "PyCapsule_Import could not import module "sip"' due to an undefined symbol (PyExc_RuntimeError)</div><div><br></div><div>Imports do work when I run directly. Not sure what is happening here.</div><div><br></div><div>End intent here is to try and use `<font face="monospace, monospace">qmltestrunner`</font> with QObjects regsitered from PyQt5 using `<font face="monospace, monospace">qmlRegisterType</font>`. Not sure of any other way to do this other than through the plugin path (via '<font face="monospace, monospace">QQmlExtensionPlugin'</font>).</div><div><br></div><div>Has anyone managed to get PyQt5 qml/qmlscene plugins working? Docs are here:</div><div><a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-python-plugins-for-qmlscene">http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-python-plugins-for-qmlscene</a></div><div><br></div><div><br></div><div>---<br></div><div><br></div><div><div><font face="monospace, monospace">$ LD_LIBRARY_PATH=$(dirname $(which python))/../lib/:$LD_LIBRARY_PATH QML2_IMPORT_PATH=. qmlscene app.qml</font></div><div><font face="monospace, monospace">ImportError: PyCapsule_Import could not import module "sip"</font></div><div><font face="monospace, monospace">Traceback (most recent call last):</font></div><div><font face="monospace, monospace"> File "/home/russ/code/PyQt5_gpl-5.7.1/examples/quick/tutorials/extending/chapter6-plugins/Charts/chartsplugin.py", line 41, in <module></font></div><div><font face="monospace, monospace"> from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin</font></div><div><font face="monospace, monospace">ImportError: /home/russ/miniconda3/envs/qtext/lib/python3.5/site-packages/PyQt5/QtQml.so: undefined symbol: PyExc_RuntimeError</font></div><div><font face="monospace, monospace">file:///home/russ/code/PyQt5_gpl-5.7.1/examples/quick/tutorials/extending/chapter6-plugins/app.qml:42 module "Charts" is not installed</font></div></div><div><div><font face="monospace, monospace">$ LD_LIBRARY_PATH=$(dirname $(which python))/../lib/:$LD_LIBRARY_PATH QML2_IMPORT_PATH=. python</font></div><div><font face="monospace, monospace">Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:53:06) </font></div><div><font face="monospace, monospace">[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux</font></div><div><font face="monospace, monospace">Type "help", "copyright", "credits" or "license" for more information.</font></div><div><font face="monospace, monospace">>>> import sip<br></font></div><div><font face="monospace, monospace">>>> from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin</font></div><div><font face="monospace, monospace">>>> </font></div></div><div><br></div><div class="gmail_extra">
</div></div>