Skip to content

PyInstaller poiting to wrong spec file #8276

Closed Answered by rokm
krzysztofkrzysztof asked this question in Help
Discussion options

You must be logged in to vote

That's because when you made the typo in pyinstaller myFile.cpes, PyInstaller created new spec file called myFile.spec (overwriting any existing spec file with that name) that points to myFile.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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by krzysztofkrzysztof
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants