[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#883201: TypeError in xorriso.py line 71



Package: live-wrapper
Version: 0.8-0~4
Severity: normal
Tags: patch

INFO Installing the disk metadata ...
INFO Creating the ISO image with Xorriso...
CRITICAL Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 193, in _run
    self.process_args(args)
  File "/usr/lib/python2.7/dist-packages/lwr/run.py", line 142, in process_args
    self.start_ops()
  File "/usr/lib/python2.7/dist-packages/lwr/run.py", line 375, in start_ops
    xorriso.build_image()
  File "/usr/lib/python2.7/dist-packages/lwr/xorriso.py", line 71, in build_image
    print(' '.join(self.args))
TypeError: sequence item 6: expected string, int found

We want only strings here, patch attached.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.2-towo.1-siduction-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages live-wrapper depends on:
ii  debian-archive-keyring  2017.6
ii  isolinux                3:6.03+dfsg1-2
ii  python                  2.7.14-1
ii  python-apt              1.4.0~beta3+b1
ii  python-cliapp           1.20170827-1
ii  python-distro-info      0.17
ii  python-pycurl           7.43.0-2+b1
ii  python-requests         2.18.1-1
ii  squashfs-tools          1:4.3-4
ii  vmdebootstrap           1.8+git-1
ii  xorriso                 1.4.8-3

live-wrapper recommends no packages.

Versions of packages live-wrapper suggests:
ii  cmdtest           0.27-1
ii  live-wrapper-doc  0.8-0~4

-- no debconf information
diff --git a/lwr/xorriso.py b/lwr/xorriso.py
index 5aa437d..59718f3 100644
--- a/lwr/xorriso.py
+++ b/lwr/xorriso.py
@@ -68,5 +68,5 @@ class Xorriso(object):
         if len(self.args) == 1:
             cliapp.AppException("Attempted to run xorriso before building "
                                 "arguments!")
-        print(' '.join(self.args))
+        print(' '.join(str(v) for v in self.args))
         runcmd(self.args)

Reply to: