Every time my Python program ends, I get the following:
close failed in file object destructor:
IOError: [Errno 9] Bad file descriptor
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
RuntimeError: sys.meta_path must be a list of import hooks
Apport presumes it won't be the cause of more problems in case something goes wrong. In my case however, Apport seems to be a big problem.
I'm on a system where I'm just one of many programmers, and I don't have root privileges. So I'd like to make my Python program simply turn Apport off, but not turn Apport off globally.
How do I disable Apport for my user account?