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' error when running standalone file.

See original GitHub issue

Version Info: Nuitka: 0.5.33 Python: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] Executable: C:\Users\Tearzz\AppData\Local\Programs\Python\Python36\python.exe OS: Windows Arch: x86_64

Installation Method: Downloaded the repo from the developer branch and ran setup.py

This is how I ran Nuitka: nuitka --standalone MobilePayAlerts.py --plugin-enable=qt-plugins --show-progress --show-scons compile log.txt

After Nuitka compiled my script MobilePayAlerts.py, I tried running MobilePayAlerts.exe where it gave me the error

Traceback (most recent call last):
  File "D:\Projects\Python Projects\MobilePayAlerts\MPA\Qt\MobilePayAlerts.dist\MobilePayAlerts.py", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'

This is what is at the top of my file: from PyQt5 import QtCore, QtGui, QtWidgets

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Sep 20, 2018

@BenTearzz Very good solution. What I normally suggest these days is --include-module=PyQt5.sip as the workaround. However, I appreciate if people not just do that, but also report it, so it can become baseline.

I think that concludes input needed. I will let you know once the fixes are coming.

0reactions
kayhayencommented, Sep 23, 2018

So this is in the new pre-release now, closing now as release is immanent and not hotfixes will happen for 0.5.33 anymore.

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 >
Packaging PyQt5 applications for Windows, with PyInstaller ...
In this tutorial we'll look at the most popular tool for packaging Python applications: PyInstaller. This tutorial is broken down into a series ......
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 >
Error "No module named PyQt5.QtCore" in QGIS standalone ...
When I try to run the script using a different Python interpreter ( C:\Program Files\Python37\python.exe ) not installed by QGIS I get the ......
Read more >
[Solved] Compiling ki18n-git - "ImportError: No module named ...
The error that I get is: Traceback (most recent call last): File "/usr/share/ECM/find-modules/run-sip.py", line 10, in <module> from PyQt5.
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