Public bug reported: Binary package hint: apport
This post http://rhodesmill.org/brandon/2010/ubuntu- exception-190-modules/ demonstrates a bug in the way apport settings are checked. To demonstrate the problem: >>> import sys >>> len(sys.modules) 34 >>> foo Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'foo' is not defined >>> len(sys.modules) 215 >>> This is because the apport_python_hook.py imports from apport to use the enabled method that checks /etc/default/apport The solution is to move the check of /etc/default/apport into the hook which results in the following: Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> len(sys.modules) 39 >>> foo Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'foo' is not defined >>> len(sys.modules) 39 ** Affects: apport (Ubuntu) Importance: Undecided Status: New -- Unnecessary imports to work out apport reporting is disabled https://bugs.launchpad.net/bugs/528355 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs