Public bug reported: python2.7-dbg will attempt and fail to load non-debug C modules when the debug packages are not installed. For instance, I get the following exception when trying to import dbus:
evan@caron:~$ python2.7-dbg Python 2.7.2+ (default, Oct 4 2011, 21:24:50) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys [39102 refs] >>> sys.excepthook = sys.__excepthook__ [39102 refs] >>> import dbus Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/dbus/__init__.py", line 79, in <module> import dbus.types as types File "/usr/lib/python2.7/dist-packages/dbus/types.py", line 6, in <module> from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\ ImportError: /usr/lib/python2.7/dist-packages/_dbus_bindings.so: undefined symbol: Py_InitModule4_64 [40053 refs] (I reset the excepthook because apport imports apt_pkg, which also triggers this issue and complicates the backtrace) Installing the python-dbus-dbg package works around this issue successfully, but there's no indication in the docs that this is necessary. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: python2.7-dbg 2.7.2-5ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4 Uname: Linux 3.0.0-12-generic x86_64 ApportVersion: 1.23-0ubuntu3 Architecture: amd64 CheckboxSubmission: d27dbc9ce66475289526ca4b283ec487 CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f Date: Mon Oct 10 15:34:46 2011 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1) SourcePackage: python2.7 UpgradeStatus: Upgraded to oneiric on 2011-09-18 (22 days ago) ** Affects: python2.7 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug oneiric running-unity -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/872050 Title: python2.7-dbg unable to import non-dbg C modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/872050/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs