PyInstaller poiting to wrong spec file #8276
-
Hello! My scenario in cmd is running pyinsteller with a spec file with a typo in a format:
got an info about file not found obviously then fix format:
pyInstaller still telling me that:
Did anyone faced an issue like that?
Q: Did you tried to close and open it again? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's because when you made the typo in I suppose prior to (re)generating the spec file, we could check that the entry-point script actually exists to avoid issues like that. |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right. I haven't noticed that console message at first time:
Edge case caused by user typo, but could be a good idea. |
Beta Was this translation helpful? Give feedback.
That's because when you made the typo in
pyinstaller myFile.cpes
, PyInstaller created new spec file calledmyFile.spec
(overwriting any existing spec file with that name) that points tomyFile.cpes
as the entry-point script. Because technically, the entry-point script could have a name like that (i.e., it does not really have to have .py suffix, or have a suffix at all).I suppose prior to (re)generating the spec file, we could check that the entry-point script actually exists to avoid issues like that.