ImportError: No module named 'PyQt5.sip'

Gabriele Bulfon gbulfon at sonicle.com
Mon Apr 27 16:41:04 BST 2020


Sorry, do you mean to use that option building the sip tool (5.2.0)?
Or to use it to build PyQt5?
I don't see this option stated in sip tools help.
While, to build sip, I see only the setup.py script, should I use "--sip-module..." on it?
 
Sorry, everything is new here to me :)
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
Patrick Stinson
Cc:
pyqt at riverbankcomputing.com
Data:
27 aprile 2020 17.34.34 CEST
Oggetto:
Re: ImportError: No module named 'PyQt5.sip'
 
Hello,
 
do you mean something like this?
/usr/bin/sip-build --no-make --sip-module PyQt5.sip --qmake /usr/lib/qt/5.14/bin/amd64/qmake --confirm-license
 
Thanks!
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Patrick Stinson
A:
Gabriele Bulfon
Cc:
pyqt at riverbankcomputing.com
Data:
27 aprile 2020 17.19.48 CEST
Oggetto:
Re: ImportError: No module named 'PyQt5.sip'
Did you build sip with “—sip-module PyQt5.sip”?
On Apr 26, 2020, at 11:45 PM, Gabriele Bulfon
wrote:

Hello,
 
I've built and packaged from sources PyQt5 for our XStreamOS/illumos distro.
Your package is a requirement for LightDM web-greeter.
After building and installing all the packages, trying to run web-greeter I receive this errors:
 
XStreamOS Chandra (powered by illumos) SunOS 5.11 March 2020
gbulfon at xstreamos:~$ web-greeter
Traceback (most recent call last):
File "/usr/lib/python3.5/vendor-packages/whither/toolkits/bootstrap.py", line 31, in
from .qt.window import QtWindow as Window
File "/usr/lib/python3.5/vendor-packages/whither/toolkits/qt/window.py", line 34, in
from PyQt5.QtWidgets import (
ImportError: No module named 'PyQt5.sip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/bin/web-greeter/__main__.py", line 37, in
File "/usr/lib/python3.5/vendor-packages/whither/app.py", line 33, in
from .toolkits.bootstrap import Application, Window, WebContainer
File "/usr/lib/python3.5/vendor-packages/whither/toolkits/bootstrap.py", line 38, in
from .gtk.window import GtkWindow as Window
File "/usr/lib/python3.5/vendor-packages/whither/toolkits/gtk/window.py", line 34, in
gi.require_versions({'Gtk': '3.0', 'Gdk': '3.0'})
AttributeError: module 'gi' has no attribute 'require_versions'
 
I also have built and installed pyqt5-sip 12.7.2.
Any idea what's missing?
Or, where should I look for missing stuff? What is it looking for?
 
Thanks,
Gabriele
 
 
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200427/9825a9fc/attachment-0001.htm>


More information about the PyQt mailing list