apport_python_hook breaks under python-dbg unless you have python-apt-dbg installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Hi,
If one doesn't have python-apt-dbg installed and runs:
% python-dbg -c 'import foo'
this is the result:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named foo
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import fileutils
File "/usr/lib/
from packaging_impl import impl as packaging
File "/usr/lib/
import apt
File "/usr/lib/
import apt_pkg
ImportError: /usr/lib/
Original exception was:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named foo
[23315 refs]
After installing python-apt-dbg, the result is the expected one:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named foo
[29873 refs]
I think python-apport should either depend on python-apt-dbg or disable the hook for python*-dbg sessions.
Cheers,
Changed in apport: | |
importance: | Undecided → Low |
status: | New → Confirmed |
affects: | apport (Ubuntu) → python-defaults (Ubuntu) |
Changed in python-defaults (Ubuntu): | |
status: | Won't Fix → Triaged |
It can be reproduced on karmic using $ python-dbg -c 'import apport'