question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'PyQt5.sip'

See original GitHub issue

I tried following the directions in the README to build Electron Cash from source on a Ubuntu 18.04 VM. This was a new system, setup for experimenting with software.

When I got to the part where I run pyrcc5 icons.qrc -o gui/qt/icons_rc.py, I got this output:

trout@trout-wasabi:~/Electron-Cash$ pyrcc5 icons.qrc -o gui/qt/icons_rc.py
Traceback (most recent call last):
  File "/usr/local/bin/pyrcc5", line 11, in <module>
    load_entry_point('PyQt5==5.11.3', 'console_scripts', 'pyrcc5')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/PyQt5-5.11.3-py3.6-linux-x86_64.egg/PyQt5/pyrcc_main.py", line 21, in <module>
    from PyQt5.QtCore import PYQT_VERSION_STR, QDir, QFile
ModuleNotFoundError: No module named 'PyQt5.sip'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

12reactions
cculianucommented, Dec 29, 2018

Try:

pip3 install --user -I PyQt5
pip3 install --user -I PyQt5-sip

-I tells it to ignore already-installed packages and reinstall them.

PyQt5.QtGui import * seems to be calling for SIP in some deprecated manner due to SIP no longer being bundled with PyQt5.

No… to the contrary – sip is bundled with PyQt5 as sip.so.

6reactions
clifordsymackcommented, Oct 15, 2018

@christroutner this help for me https://github.com/Electron-Cash/Electron-Cash/issues/850#issuecomment-427083434

I made the follows:

pip uninstall pyqt5
pip install --upgrade pyqt5
Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named PyQt5.sip - python - Stack Overflow
The reason is a backward incompatible change in PyQt-5.11. In geoptics this fix works on old and new versions: try: # new location...
Read more >
No module named PyQt5.sip · Issue #921 · marcelotduarte ...
ImportError: No module named 'PyQt5.sip' . I can import PyQt5.sip in the same python environment that i used to call python setup.py build ......
Read more >
Importerror no module named sip : Tricks to Handle
We can fix "importerror no module named sip" error by installing PyQt5 python module. We should always ensure the path for PyQt5 python...
Read more >
PyQt5-sip - PyPI
The sip extension module provides support for the PyQt5 package. Project details. Project links. Homepage. Statistics. View statistics for this project via ...
Read more >
ModuleNotFoundError: No module named 'PyQt5' in Python
The Python "ModuleNotFoundError: No module named 'PyQt5'" occurs when we forget to install the PyQt5 module before importing it or install it in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found