No module named 'PyQt5.sip' error when running standalone file.
See original GitHub issueVersion 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:
- Created 5 years ago
- Comments:15 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
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.