M
M
megared2021-03-26 09:29:01
PyQt
megared, 2021-03-26 09:29:01

PyQt6 module is not imported when building via pyinstaller, what should I do?

There is UpdatedGUI.py , which imports the local design.py file . Usually, everything works fine, but when building through pyinstaller , it gives me the following at startup:
(When the file is launched, it closes instantly, I managed to screen this one) Here's the line it
605d7e61bfb73845438758.png
swears at : Design.py

file so that pyinstaller normally throws QtCore, QtGui, QtWidgets modules from PyQt6? It is worth noting that even if you import the same modules from the main file, it will still say that they are not found.
from PyQt6 import QtCore, QtGui, QtWidgets

pyinstaller --onefile UpdatedGUI.py

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2021-03-26
@megared

Dll libraries, as it were, also need to be next to the exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question