python2.7-dbg unable to import non-dbg C modules

Bug #872050 reported by Evan Broder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python2.7 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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)

CVE References

Revision history for this message
Evan Broder (broder) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.7 - 2.7.3~rc2-2ubuntu1

---------------
python2.7 (2.7.3~rc2-2ubuntu1) precise; urgency=low

  * Merge with Debian; remaining changes:

python2.7 (2.7.3~rc2-2) unstable; urgency=low

  * Use xdg-open/gvfs-open in Lib/webbrowser.py (Michael Vogt).
    LP: #971311.
  * Add a paragraph about python-foo-dbg packages to README.debug.
    LP: #872050.
  * Disable some tests (no feedback from porters):
    - test_socket on hurd-i386.
    - test_io on amd64.
    - test_signal on kfreebsd-*. Closes: #654783.
    - test_threading on sparc.
  * Tighten build dependency on libexpat-dev. Closes: #665346.
  * Build-depend on db-5.1, don't care about testsuite regressions on
    some esoteric ports. If packages rely on threaded applications or
    transactions, please use the python-bsddb3 package.
    Closes: #621374.
  * Don't ship the python2 and python2-config symlinks, move these
    to the python-minimal and python-dev packages. Closes: #663874.
  * Remove PVER-doc.doc-base.PVER-doc.in. Closes: #656763.
  * Update symbols files.
  * Avoid runtime path for the sqlite extension.
  * CVE-2011-4944, distutils creates ~/.pypirc insecurely. Closes: #650555.
  * Fix issue #14505, file descriptor leak when deallocating file objects
    created with PyFile_FromString(). Closes: #664529.
 -- Matthias Klose <email address hidden> Fri, 06 Apr 2012 20:54:29 +0200

Changed in python2.7 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.