I've written my first app with Python Tkinter and want to deploy with an executable file. I created a .spec file with pyinstaller and have the following error in the first line of code:
Error message: "RpmSpecTokenType.( or RpmSpecTokenType.: expected, got '='"
I googled the error message and do not find results which is usually indicative of an error I made. However I did follow the directions for pyinstaller correctly and have seen multiple examples here and other places of operational .spec files and mine is identical. I do not know how to solve/debug this error.
Thank you for your assistance.
You have a wrong plugin installed. In PyCharm (or other IntelliJ IDEs) you have plugin installed for .spec
files that inspect RMP Spec files, not .spec
files for pyinstaller
. As far as I know there is no plugin for .spec
files for pyinstaller, and actually there is no need to have a plugin as .spec
file for pyinstaller is just a plain Python script and you can configure your IDE to open it as a regular Python file.