python2.7-dbg unable to import non-dbg C modules
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/
import dbus.types as types
File "/usr/lib/
from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\
ImportError: /usr/lib/
[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
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: d27dbc9ce664752
CheckboxSystem: bb422ca46d02494
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)
This bug was fixed in the package python2.7 - 2.7.3~rc2-2ubuntu1
--------------- rc2-2ubuntu1) precise; urgency=low
python2.7 (2.7.3~
* 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). doc-base. PVER-doc. in. Closes: #656763. FromString( ). Closes: #664529.
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.
* 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_
-- Matthias Klose <email address hidden> Fri, 06 Apr 2012 20:54:29 +0200