I have solved adding the paths=( location of the missing file) is the first time that I have to do it Luca
Il giorno giovedì 24 marzo 2022 alle 12:52:16 UTC+1 Luca Bertolotti ha scritto: > Hello > i don't know what happen > i have a simple program with a form , the main file is : > > import sys > from PyQt5 import * > from PyQt5 import QtWidgets > from form import Form > app = QtWidgets.QApplication(sys.argv) > form = Form() > form.show() > app.exec_() > > Than i run pyinstaller as usual : > pyinstaller -- onefile --windowed main.py (As i do a lot of time), > when i run the exe i get > ModuleNotFoundError: No module named 'form' > The file form is in the same folder of the main file. > I use python 3.8.6 > and pyqt 5.15.6 > Any Idea > Thanks > > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/f1e13677-695f-427a-bd4d-57bd767dba33n%40googlegroups.com.
