I am pretty new to pyinstaller but I have been banging my head against this problem for a couple of days now and I can\'t seem to figure out what\'s wrong. My script runs fine n
it seems that with PLY it is necessary to include the py file itself
as described on THIS link, the workaround solution is to add the file in the .spec file generated by pyinstaller as below :
datas=[('calc.py','.')]
see pyinstaller Using spec file for details on adding a file into your executable