<div dir="ltr">I get the same error after I installed for Python3. With the python3 path<div><br></div><div><div>ImportError: PyCapsule_Import could not import module "sip"</div><div><br></div><div>Traceback (most recent call last):</div><div> File "/home/siecje/Downloads/PyQt5_gpl-5.8.dev1702011549/examples/quick/tutorials/extending/chapter6-plugins/Charts/chartsplugin.py", line 41, in <module></div><div> from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin</div><div>ImportError: /usr/lib/python3/dist-packages/PyQt5/QtQml.so: undefined symbol: PyExc_RuntimeError</div><div><br></div><div>file:///home/siecje/Downloads/PyQt5_gpl-5.8.dev1702011549/examples/quick/tutorials/extending/chapter6-plugins/app.qml:42 module "Charts" is not installed</div><div><br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 10:01 AM, Cody Scott <span dir="ltr"><<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just noticed that that is using a python2.7 path. I'm going to install PyQt5 again but for Python3 for sure.<div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 9:50 AM, Cody Scott <span dir="ltr"><<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I copy the libpyqt5qmlplugin.so into the Charts directory then I get an error about <div><br></div><div><div>ImportError: PyCapsule_Import could not import module "sip"</div><div><br></div><div>Traceback (most recent call last):</div><div> File "/home/siecje/Downloads/PyQt5_<wbr>gpl-5.7.2.dev1701201828/exampl<wbr>es/quick/tutorials/extending/c<wbr>hapter6-plugins/Charts/chartsp<wbr>lugin.py", line 41, in <module></div><div> from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin</div><div>ImportError: /usr/lib/python2.7/dist-packag<wbr>es/PyQt5/QtQml.so: undefined symbol: PyExc_RuntimeError</div><div><br></div><div>file:///home/siecje/Downloads/<wbr>PyQt5_gpl-5.7.2.dev1701201828/<wbr>examples/quick/tutorials/exten<wbr>ding/chapter6-plugins/app.qml:<wbr>42 module "Charts" is not installed</div><div><br></div></div></div><div class="m_4569984164273508944HOEnZb"><div class="m_4569984164273508944h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 30, 2017 at 9:22 AM, Cody Scott <span dir="ltr"><<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I ran configure providing the qmake path for Qt and then make and make install.</div><div class="m_4569984164273508944m_4024669774045752893HOEnZb"><div class="m_4569984164273508944m_4024669774045752893h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 28, 2017 at 10:03 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_4569984164273508944m_4024669774045752893m_7517555831052711916HOEnZb"><div class="m_4569984164273508944m_4024669774045752893m_7517555831052711916h5">On 27 Jan 2017, at 7:26 pm, Cody Scott <<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>> wrote:<br>
><br>
> I'm trying to use a Python type with qmlscene.<br>
><br>
> <a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-python-plugins-for-qmlscene" rel="noreferrer" target="_blank">http://pyqt.sourceforge.net/Do<wbr>cs/PyQt5/qml.html#writing-pyth<wbr>on-plugins-for-qmlscene</a><br>
><br>
> I'm trying to run the example from `examples/quick/tutorials/exte<wbr>nding/chapter6-plugins/`<br>
><br>
><br>
> $ QML2_IMPORT_PATH=. ~/Qt/5.7/gcc_64/bin/qmlscene app.qml<br>
> file:///path/to/app.qml:42 module "Charts" plugin "pyqt5qmlplugin" not found<br>
><br>
> It appears I do have the pyqt5qmlplugin.<br>
><br>
> $ ls ~/Qt/5.7/gcc_64/plugins/PyQt5/<br>
> libpyqt5qmlplugin.so*<br>
<br>
</div></div>How did you install PyQt? It's not included in the wheels.<br>
<span class="m_4569984164273508944m_4024669774045752893m_7517555831052711916HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>