Search code examples
pythonpyinstaller

How to check if exe file is generating any errors when run?


I am generating a exe file through a python script. The script runs fine but when I run exe file, it is not receiving voice input properly. I have used speech_recognition and pyttsx3 modules for voice. Where can I see the errors that are present when I run the exe file?


Solution

  • The comments are nice but I think what you're missing is that you are creating an executable that runs windowed. If you want to debug, do not supply --windowed to pyinstaller when building the executable. Then you will be able to read the print statements, warnings, or errors of your program.

    From experience, an issue could be that an important library (e.g. DLL on windows) is missing from the distribution.