When I run my .py file from terminal I got no error, but when I run in as an executable (the exact same app) I get an error on this line
raise RuntimeError(f'Line lengths in the {file} are not ok. Please check it.')
When I comment it out it works. The error is: SyntaxError: invalid syntax pointing to the ' symbol at the end of the line. I do not understand how is it possible the file works without an error when running from terminal but not when run as executable.