Bug#717191: adt-run: "ImportError: No module named debian" with old python-debian version

Christoph Berg myon at debian.org
Wed Jul 17 18:53:09 UTC 2013

Package: autopkgtest
Version: 2.2.4
Severity: normal
Tags: patch


for apt.postgresql.org, we are running autopkgtest on lots of
distributions, including Ubuntu's lucid release. There, adt-run fails:

# adt-run
Traceback (most recent call last):
  File "/usr/bin/adt-run", line 39, in <module>
    from debian import deb822, debian_support
ImportError: No module named debian

The following patch fixes the problem:

--- adt-run~    2013-07-17 20:50:02.152820307 +0200
+++ adt-run     2013-07-17 20:48:58.594050252 +0200
@@ -36,7 +36,7 @@
 import fnmatch
 import shutil
 import copy
-from debian import deb822, debian_support
+from debian_bundle import deb822, debian_support
 from optparse import OptionParser
 signal.signal(signal.SIGINT, signal.SIG_DFL) # undo stupid Python SIGINT thing

adt-run continues to start up just fine on my wheezy box, so it seems
safe to do this change in the sid version, where we pull the
autopkgtest package from.

(Alternatively, the dependency on python-debian should be fixed.)

cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20130717/6e94f51b/attachment.sig>

More information about the autopkgtest-devel mailing list