<div dir="ltr">I was able to build the plugin and run the example, so it was a problem with my environment.<div><br></div><div>In order for the path of the plugin to be in the qmldir file I had to add the Qt/5.9.2/gcc_64/bin directory to my PATH.</div><div><br></div><div>I ended up create a Python3.6 environment using miniconda and then building PyQt5 from source and it worked.</div><div><br></div><div>Previously I was using the Python 3.5.2 that came with Ubuntu 16.04</div><div><br></div><div>Sorry for bugging you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 1:35 PM, 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 installed Qt 5.9.2 and built PyQt5 using the latest snapshot for 5.9.2. This is on Linux Ubuntu 16.04.<div><br></div><div><div>$ QML2_IMPORT_PATH=. ~/Qt/5.9.2/gcc_64/bin/qmlscene app.qml </div><div>file:///home/siecje/Downloads/<wbr>PyQt5_gpl-5.9.1.dev1710071532/<wbr>examples/quick/tutorials/<wbr>extending/chapter6-plugins/<wbr>app.qml:42 plugin cannot be loaded for module "Charts": Cannot load library /home/siecje/Qt/5.9.2/gcc_64/<wbr>plugins/PyQt5/<wbr>libpyqt5qmlplugin.so: (/home/siecje/Qt/5.9.2/gcc_64/<wbr>plugins/PyQt5/<wbr>libpyqt5qmlplugin.so: undefined symbol: _Py_NoneStruct)</div><div><br></div><div>$ scanelf -l -s _Py_NoneStruct | grep _Py_NoneStruct</div><div>ET_DYN _Py_NoneStruct /usr/lib/x86_64-linux-gnu/<wbr>libpython3.5m.so.1.0</div></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 6, 2017 at 9:57 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"><span>On 6 Sep 2017, at 2:52 pm, Cody Scott <<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>> wrote:<br>
><br>
> Hey Phil,<br>
><br>
> I was wondering if you had a chance to look at this?<br>
<br>
</span>It's something to do with the Python or the plugin build (works fine on macOS).<br>
<br>
Phil<br>
<span><br>
> On Thu, Aug 17, 2017 at 11:39 AM, Cody Scott <<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>> wrote:<br>
> I have built PyQt5 from source using the latest sip and PyQt5 snapshots.<br>
><br>
> I'm trying to run examples/quick/tutorials/exten<wbr>ding/chapter6-plugins/<br>
><br>
> $ QML2_IMPORT_PATH=. LD_LIBRARY_PATH=~/.virtualenvs<wbr>/pyqt5/lib/python3.5/ ~/Qt/5.9.1/gcc_64/bin/qmlscene app.qml<br>
><br>
> file:///home/siecje/Downloads/<wbr>PyQt5_gpl-5.9.1.dev1707250927/<wbr>examples/quick/tutorials/exten<wbr>ding/chapter6-plugins/app.qml:<wbr>42<br>
> plugin cannot be loaded for module "Charts":<br>
> Cannot load library /home/siecje/Qt/5.9.1/gcc_64/p<wbr>lugins/PyQt5/libpyqt5qmlplugin<wbr>.so:<br>
><br>
> (/home/siecje/Qt/5.9.1/gcc_64/<wbr>plugins/PyQt5/libpyqt5qmlplugi<wbr>n.so: undefined symbol: _Py_NoneStruct)<br>
><br>
><br>
> Related email threads<br>
><br>
> <a href="https://www.riverbankcomputing.com/pipermail/pyqt/2017-February/038794.html" rel="noreferrer" target="_blank">https://www.riverbankcomputing<wbr>.com/pipermail/pyqt/2017-<wbr>February/038794.html</a><br>
> <a href="https://www.riverbankcomputing.com/pipermail/pyqt/2017-February/038735.html" rel="noreferrer" target="_blank">https://www.riverbankcomputing<wbr>.com/pipermail/pyqt/2017-<wbr>February/038735.html</a><br>
><br>
><br>
</span>> ______________________________<wbr>_________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
> <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing<wbr>.com/mailman/listinfo/pyqt</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>