Nuitka: No module named 'PyQt5.sip' error when running standalone file.

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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

@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.