<div dir="ltr">Wrestling with this some more, I'm now stuck with an undefined symbol (PyExc_RunTimeError) per below.  The need to add LD_LIBRARY_PATH here (in order to find libpython3.5m.so.1.0) to move forward makes me think something else is wrong, too. I'm certainly having more trouble with this than I would expect from the docs at <a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html">http://pyqt.sourceforge.net/Docs/PyQt5/qml.html</a>.<div><br></div><div>Is this maybe due to using the nightly snapshot? I see a 5.8 in the snapshot name, and I'm on 5.7.1.  I moved to the snapshot because this was failing with the wheel.<br><div><div><br></div><div>---</div><div><br></div><div><div><font face="monospace, monospace">$ qmake --version</font></div><div><font face="monospace, monospace">QMake version 3.0</font></div><div><font face="monospace, monospace">Using Qt version 5.7.1 in /home/russ/Qt/5.7/gcc_64/lib</font></div><div><font face="monospace, monospace">$ which qmake</font></div><div><font face="monospace, monospace">/home/russ/Qt/5.7/gcc_64/bin/qmake</font></div><div><font face="monospace, monospace">$ which qmlscene</font></div><div><font face="monospace, monospace">/home/russ/Qt/5.7/gcc_64/bin/qmlscene</font></div><div><font face="monospace, monospace">$ tree -n --charset=ascii<br></font></div><div><font face="monospace, monospace">.</font></div><div><font face="monospace, monospace">|-- app.qml</font></div><div><font face="monospace, monospace">`-- Charts</font></div><div><font face="monospace, monospace">    |-- chartsplugin.py</font></div><div><font face="monospace, monospace">    |-- piechart.py</font></div><div><font face="monospace, monospace">    |-- pieslice.py</font></div><div><font face="monospace, monospace">    `-- qmldir</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">1 directory, 5 files</font></div><div><font face="monospace, monospace">$ cat Charts/qmldir </font></div><div><font face="monospace, monospace">module Charts</font></div><div><font face="monospace, monospace">plugin pyqt5qmlplugin /home/russ/Qt/5.7/gcc_64/plugins/PyQt5</font></div><div><font face="monospace, monospace">$ QML2_IMPORT_PATH=. qmlscene app.qml</font></div><div><font face="monospace, monospace">file:///home/russ/code/PyQt5_gpl-5.8.dev1702080008/examples/quick/tutorials/extending/chapter6-plugins/app.qml:42 plugin cannot be loaded for module "Charts": Cannot load library /home/russ/Qt/5.7/gcc_64/plugins/PyQt5/libpyqt5qmlplugin.so: (libpython3.5m.so.1.0: cannot open shared object file: No such file or directory)</font></div><div><font face="monospace, monospace"><br></font></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.8.dev1702080008/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/qtclient/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.8.dev1702080008/examples/quick/tutorials/extending/chapter6-plugins/app.qml:42 module "Charts" is not installed</font></div><div><br></div></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 12:04 AM, Russell Warren <span dir="ltr"><<a href="mailto:russ@perspexis.com" target="_blank">russ@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">... and an strace of the failed execution:<div><br></div><div><a href="https://bpaste.net/raw/b61ac215af60" target="_blank">https://bpaste.net/raw/<wbr>b61ac215af60</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 11:59 PM, Russell Warren <span dir="ltr"><<a href="mailto:russ@perspexis.com" target="_blank">russ@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">With a freshly compiled sip and PyQt5 (on Debian) from the nightly snapshots, I am unable to run the chapter6-plugins example. It fails with:<div><br></div><div><font face="monospace, monospace">plugin cannot be loaded for module "Charts": Cannot load library /home/russ/Qt/5.7/gcc_64/plugi<wbr>ns/PyQt5/libpyqt5qmlplugin.so: (libpython3.5m.so.1.0: cannot open shared object file: No such file or directory)<br></font></div><div><br></div><div>This same error happens when attempting with the wheel.</div><div><br></div><div>Below is the chain of events (with extra info) to reproduce:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">$ cd ~/code/PyQt5_gpl-5.8.dev170208<wbr>0008/examples/quick/tutorials/<wbr>extending/chapter6-plugins/</font></div><div><font face="monospace, monospace">$ python --version</font></div><div><font face="monospace, monospace">Python 3.5.2 :: Continuum Analytics, Inc.</font></div><div><font face="monospace, monospace">$ qmake --version</font></div><div><font face="monospace, monospace">QMake version 3.0</font></div><div><font face="monospace, monospace">Using Qt version 5.7.1 in /home/russ/Qt/5.7/gcc_64/lib</font></div><div><font face="monospace, monospace">$ sip -V</font></div><div><font face="monospace, monospace">4.19.1.dev1702050216</font></div><div><font face="monospace, monospace">$ python -c "from PyQt5 import QtCore; print(QtCore.PYQT_VERSION_STR)<wbr>"</font></div><div><font face="monospace, monospace">5.8.dev1702080008</font></div><div><font face="monospace, monospace">$ find . -type f </font></div><div><font face="monospace, monospace">./Charts/piechart.py</font></div><div><font face="monospace, monospace">./Charts/pieslice.py</font></div><div><font face="monospace, monospace">./Charts/chartsplugin.py</font></div><div><font face="monospace, monospace">./Charts/qmldir</font></div><div><font face="monospace, monospace">./app.qml</font></div><div><font face="monospace, monospace">$ QML2_IMPORT_PATH=. qmlscene app.qml                         </font></div><div><font face="monospace, monospace">file:///home/russ/code/PyQt5_g<wbr>pl-5.8.dev1702080008/examples/<wbr>quick/tutorials/extending/<wbr>chapter6-plugins/app.qml:42 plugin cannot be loaded for module "Charts": Cannot load library /home/russ/Qt/5.7/gcc_64/plugi<wbr>ns/PyQt5/libpyqt5qmlplugin.so: (libpython3.5m.so.1.0: cannot open shared object file: No such file or directory)</font></div><div><font face="monospace, monospace">$ cp /home/russ/miniconda3/envs/qtc<wbr>lient/lib/<a href="http://libpython3.5m.so" target="_blank">libpython3.5m.so</a> Charts/  </font></div><div><font face="monospace, monospace">$ ln -s <a href="http://libpython3.5m.so" target="_blank">libpython3.5m.so</a> Charts/libpython3.5m.so.1.0</font></div><div><font face="monospace, monospace">$ ls -l Charts/</font></div><div><font face="monospace, monospace">total 9944</font></div><div><font face="monospace, monospace">-rw-r--r-- 1 russ russ     2314 Feb  7 21:30 chartsplugin.py</font></div><div><font face="monospace, monospace">-rwxr-xr-x 1 russ russ 10165073 Feb  7 23:40 <a href="http://libpython3.5m.so" target="_blank">libpython3.5m.so</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx 1 russ russ       16 Feb  7 23:41 libpython3.5m.so.1.0 -> <a href="http://libpython3.5m.so" target="_blank">libpython3.5m.so</a></font></div><div><font face="monospace, monospace">-rw-r--r-- 1 russ russ     2600 Feb  7 21:30 piechart.py</font></div><div><font face="monospace, monospace">-rw-r--r-- 1 russ russ     3136 Feb  7 21:30 pieslice.py</font></div><div><font face="monospace, monospace">-rw-r--r-- 1 russ russ       75 Feb  7 22:55 qmldir</font></div><div><font face="monospace, monospace">$ QML2_IMPORT_PATH=. qmlscene app.qml</font></div><div><font face="monospace, monospace">file:///home/russ/code/PyQt5_g<wbr>pl-5.8.dev1702080008/examples/<wbr>quick/tutorials/extending/<wbr>chapter6-plugins/app.qml:42 plugin cannot be loaded for module "Charts": Cannot load library /home/russ/Qt/5.7/gcc_64/plugi<wbr>ns/PyQt5/libpyqt5qmlplugin.so: (libpython3.5m.so.1.0: cannot open shared object file: No such file or directory)</font></div><div><font face="monospace, monospace">$ cat Charts/qmldir </font></div><div><font face="monospace, monospace">module Charts</font></div><div><font face="monospace, monospace">plugin pyqt5qmlplugin /home/russ/Qt/5.7/gcc_64/plugi<wbr>ns/PyQt5</font></div><div><font face="monospace, monospace">$ ls /home/russ/Qt/5.7/gcc_64/plugi<wbr>ns/PyQt5 -l</font></div><div><font face="monospace, monospace">total 28</font></div><div><font face="monospace, monospace">-rwxr-xr-x 1 russ russ 26136 Feb  7 23:26 libpyqt5qmlplugin.so</font></div><div><br></div></div><div><br></div><div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_7919629009169869349gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#000099">Russell Warren</font></div><div><font color="#000099">Perspexis Technologies Inc.</font></div><div><font color="#000099"><br></font></div><div><font color="#000099">This information is confidential and intended solely for the use of the individual or entity to whom it is addressed.</font></div><div><span style="color:rgb(0,0,153)">If you have received this email in error, please notify the sender immediately.</span></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#000099">Russell Warren</font></div><div><font color="#000099">Perspexis Technologies Inc.</font></div><div><font color="#000099"><br></font></div><div><font color="#000099">This information is confidential and intended solely for the use of the individual or entity to whom it is addressed.</font></div><div><span style="color:rgb(0,0,153)">If you have received this email in error, please notify the sender immediately.</span></div></div></div>
</div>