I’ve written a Python script that should print some output or at least show an error if something fails. However, when I run it, it just exits immediately without showing anything.
There’s no traceback or visible error message.
I’ve already tried running it from the terminal and adding print statements, but it still closes instantly.
What are the possible reasons for a Python program to exit silently like this?