<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ah, thanks for the clarification. That’s right, I am still on sip-4 so my comments are out of date.<div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 27, 2020, at 8:40 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">You are talking about SIP v5, Patrick is talking about SIP v4.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">If you must build from sources then you can get the source package for the PyQt5.sip module from PyPI...</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://pypi.org/project/PyQt5-sip/#files" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://pypi.org/project/PyQt5-sip/#files</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">The PyQt5 sources are also on PyPI...</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://pypi.org/project/PyQt5/#files" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://pypi.org/project/PyQt5/#files</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">To do the build you must also have SIP and PyQt-builder installed from PyPI.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Phil</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 27/04/2020 17:19, Gabriele Bulfon wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Ok, sip sources have no configure.py:<br class=""> <br class="">ChangeLog<br class="">code_generator<br class="">doc<br class="">examples<br class="">LICENSE<br class="">LICENSE-GPL2<br class="">LICENSE-GPL3<br class="">MANIFEST.in<br class="">NEWS<br class="">PKG-INFO<br class="">pyproject.toml<br class="">README<br class="">setup.cfg<br class="">setup.py<br class="">sip.egg-info<br class="">sipbuild<br class=""> <br class="">I only have setup.py<br class="">I got the sources from here:<br class=""><a href="https://files.pythonhosted.org/packages/bc/dd/aa60ae73bc213466fd158e3d8b91d55ac00a248b14a98919bfe0e12c5d74/sip-5.2.0.tar.gz" class="">https://files.pythonhosted.org/packages/bc/dd/aa60ae73bc213466fd158e3d8b91d55ac00a248b14a98919bfe0e12c5d74/sip-5.2.0.tar.gz</a><br class=""> <br class="">Is this correct?<br class=""> <br class=""> <br class="">Sonicle S.r.l. <br class="">: <br class="">http://www.sonicle.com<br class="">Music: <br class="">http://www.gabrielebulfon.com<br class="">Quantum Mechanics : <br class="">http://www.cdbaby.com/cd/gabrielebulfon<br class="">Da:<br class="">Patrick Stinson<br class="">A:<br class="">Gabriele Bulfon<br class="">Cc:<br class=""><a href="mailto:pyqt@riverbankcomputing.com" class="">pyqt@riverbankcomputing.com</a><br class="">Data:<br class="">27 aprile 2020 18.10.21 CEST<br class="">Oggetto:<br class="">Re: ImportError: No module named 'PyQt5.sip'<br class="">I mean when the option you passed to sip’s configure.py when building sip.<br class="">On Apr 27, 2020, at 7:34 AM, Gabriele Bulfon<br class="">wrote:<br class=""><br class="">Hello,<br class=""> <br class="">do you mean something like this?<br class="">/usr/bin/sip-build --no-make --sip-module PyQt5.sip --qmake<br class="">/usr/lib/qt/5.14/bin/amd64/qmake --confirm-license<br class=""> <br class="">Thanks!<br class="">Gabriele<br class=""> <br class=""> <br class="">Sonicle S.r.l. <br class="">: <br class=""><a href="http://www.sonicle.com/" class="">http://www.sonicle.com</a><br class="">Music: <br class=""><a href="http://www.gabrielebulfon.com/" class="">http://www.gabrielebulfon.com</a><br class="">Quantum Mechanics : <br class=""><a href="http://www.cdbaby.com/cd/gabrielebulfon" class="">http://www.cdbaby.com/cd/gabrielebulfon</a><br class="">Da:<br class="">Patrick Stinson<br class="">A:<br class="">Gabriele Bulfon<br class="">Cc:<br class=""><a href="mailto:pyqt@riverbankcomputing.com" class="">pyqt@riverbankcomputing.com</a><br class="">Data:<br class="">27 aprile 2020 17.19.48 CEST<br class="">Oggetto:<br class="">Re: ImportError: No module named 'PyQt5.sip'<br class="">Did you build sip with “—sip-module PyQt5.sip”?<br class="">On Apr 26, 2020, at 11:45 PM, Gabriele Bulfon<br class="">wrote:<br class=""><br class="">Hello,<br class=""> <br class="">I've built and packaged from sources PyQt5 for our XStreamOS/illumos distro.<br class="">Your package is a requirement for LightDM web-greeter.<br class="">After building and installing all the packages, trying to run<br class="">web-greeter I receive this errors:<br class=""> <br class="">XStreamOS Chandra (powered by illumos) SunOS 5.11 March 2020<br class="">gbulfon@xstreamos:~$ web-greeter<br class="">Traceback (most recent call last):<br class="">File<br class="">"/usr/lib/python3.5/vendor-packages/whither/toolkits/bootstrap.py",<br class="">line 31, in<br class="">from .qt.window import QtWindow as Window<br class="">File<br class="">"/usr/lib/python3.5/vendor-packages/whither/toolkits/qt/window.py",<br class="">line 34, in<br class="">from PyQt5.QtWidgets import (<br class="">ImportError: No module named 'PyQt5.sip'<br class="">During handling of the above exception, another exception occurred:<br class="">Traceback (most recent call last):<br class="">File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main<br class="">"__main__", mod_spec)<br class="">File "/usr/lib/python3.5/runpy.py", line 85, in _run_code<br class="">exec(code, run_globals)<br class="">File "/usr/bin/web-greeter/__main__.py", line 37, in<br class="">File "/usr/lib/python3.5/vendor-packages/whither/app.py", line 33, in<br class="">from .toolkits.bootstrap import Application, Window, WebContainer<br class="">File<br class="">"/usr/lib/python3.5/vendor-packages/whither/toolkits/bootstrap.py",<br class="">line 38, in<br class="">from .gtk.window import GtkWindow as Window<br class="">File<br class="">"/usr/lib/python3.5/vendor-packages/whither/toolkits/gtk/window.py",<br class="">line 34, in<br class="">gi.require_versions({'Gtk': '3.0', 'Gdk': '3.0'})<br class="">AttributeError: module 'gi' has no attribute 'require_versions'<br class=""> <br class="">I also have built and installed pyqt5-sip 12.7.2.<br class="">Any idea what's missing?<br class="">Or, where should I look for missing stuff? What is it looking for?<br class=""> <br class="">Thanks,<br class="">Gabriele<br class=""> <br class=""> <br class="">Sonicle S.r.l. <br class="">: <br class="">http://www.sonicle.com<br class="">Music: <br class="">http://www.gabrielebulfon.com<br class="">Quantum Mechanics : <br class="">http://www.cdbaby.com/cd/gabrielebulfon</blockquote></div></blockquote></div><br class=""></div></body></html>