You have been subscribed to a public bug:
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/python2.5/site-packages/apport_python_hook.py", line 38, in
apport_excepthook
from apport.packaging_impl import impl as packaging
File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in
<module>
from apport.report import Report
File "/usr/lib/python2.5/site-packages/apport/report.py", line 21, in <module>
import fileutils
File "/usr/lib/python2.5/site-packages/apport/fileutils.py", line 16, in
<module>
from packaging_impl import impl as packaging
File "/usr/lib/python2.5/site-packages/apport/packaging_impl.py", line 18, in
<module>
import apt
File "/usr/lib/python2.5/site-packages/apt/__init__.py", line 2, in <module>
import apt_pkg
ImportError: /usr/lib/python2.5/site-packages/apt_pkg.so: undefined symbol:
Py_InitModule4_64
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,
** Affects: apport (Ubuntu)
Importance: Low
Status: Triaged
** Tags: packaging
--
apport_python_hook breaks under python-dbg unless you have python-apt-dbg
installed
https://bugs.launchpad.net/bugs/264724
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp