0
votes

I have a script that I am trying to convert into an exe file using pyinstaller. It is saved in C:\Python37\Scripts

But when I try to use the following in the cmd window:

pyinstaller MisfirePlots_v0.py, I get an Invalid Syntax error.

pyinstaller error

Now I am not sure if this is a pyinstaller issue, or Python issue, or an issue with the script. The script works fine in Jupyter Lab.

Pyinstaller version is 4.0 and Python version is 3.7

Please help.

Thank you R

1
What's on line 409 of MisfirePlots_v0.py. In the future, please do not post images of text - jordanm
I should have checked. Good point. I had some unused cells in Jupyter Notebook. They had some erroneous code lines in them. When I saved the script I think these were also saved in the script and hence was causing this issue. It is resolved now. Many thanks. - rmore911

1 Answers

0
votes

I believe this syntax error has to to with your python script. Please check line 409 in your script again :)