LeticiaF | 2020-05-07 19:07:26 UTC | #1
Hi, thank you so much for this tutorial, but I'm having a problem when opening the .exe, appears this message: ModuleNotFoundError: No module named 'PyQt5' [43227] Failed to execute script
. What I'm doing wrong? Thank you for your attention!!
doev | 2020-07-17 08:17:22 UTC | #2
I have exactly the same error. Any news?
martin | 2020-07-19 10:30:49 UTC | #3
Hey @doev are you able to share your PyInstaller .spec
file or the source file you're packaging. Also which version of Python & PyQt5 are you using?
It suggests that PyInstaller isn't discovering that your application using PyQt5 for some reason. Once we figure out where it's going wrong we should be able to fix it.
Create GUI Applications with Python & Qt5 by Martin Fitzpatrick — (PyQt5 Edition) The hands-on guide to making apps with Python — Over 10,000 copies sold!
doev | 2020-07-20 14:27:49 UTC | #4
Hello Martin,
thank you for your reply. After I switched from anaconda to pip, your code is working well. I have still about 30 warings on missing modules, but I think that is a problem of PyInstaller.
PyQt6 Crash Course — a new tutorial in your Inbox every day
Beginner-focused crash course explaining the basics with hands-on examples.