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

Bug#533556: live-magic: error building image: TypeError: envv must be a sequence or a dictionary



Package: live-magic
Version: 1.6
Severity: grave
Justification: renders package unusable

When trying live-magic on Debian Unstable I get an error in the last step of the wizard.
It tries to fork the 'live-magic-builder' process with vte. It then exits with:

Traceback (most recent call last):
  File "/usr/bin/live-magic", line 26, in <module>
    LiveMagic(sys.argv[1:])
  File "/usr/lib/pymodules/python2.5/LiveMagic/__init__.py", line 77, in __init__
    c.ready(options, args)
  File "/usr/lib/pymodules/python2.5/LiveMagic/controllers/main.py", line 32, in ready
    self.do_show_build_window(lambda: gtk.main_quit())
  File "/usr/lib/pymodules/python2.5/LiveMagic/controllers/build.py", line 56, in do_show_build_window
    self.pid = self.view.vte_terminal.fork_command(cmd[0], cmd, None, os.getcwd())
TypeError: envv must be a sequence or a dictionary


Looks like a change in python-vte caused this (http://git.gnome.org/cgit/vte/commit/?id=56727a20b71cd5f960e468444ef544296ddc5edf),
so maybe this bug should be reassigned and fixed there....

But I worked around it with a tiny change in live-magic python code:

diff --git a/LiveMagic/controllers/build.py b/LiveMagic/controllers/build.py
index 211d10f..dc08447 100644
--- a/LiveMagic/controllers/build.py
+++ b/LiveMagic/controllers/build.py
@@ -53,7 +53,7 @@ class BuildController(object):
 
         # Fork command
         cmd = [find_resource('live-magic-builder')]
-        self.pid = self.view.vte_terminal.fork_command(cmd[0], cmd, None, os.getcwd())
+       self.pid = self.view.vte_terminal.fork_command(cmd[0], cmd, [], os.getcwd())
 
         if self.pid < 0:
             self.view.set_build_titles(_("Error creating Debian Live system!"), \
@@ -70,7 +70,7 @@ class BuildController(object):
         def _exec(*cmds):
             glue = ' | tee -a %s ;' % LOG_FILE
             args = ['/bin/sh', '-c', glue.join(cmds)]
-            self.view.vte_terminal.fork_command(args[0], args, None, os.getcwd())
+            self.view.vte_terminal.fork_command(args[0], args, [], os.getcwd())
 
         def set_cleaning_status():
             try:
-- 


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages live-magic depends on:
ii  gksu                          2.0.2-2+b1 graphical frontend to su
ii  live-helper                   1.0.5-1    Debian Live build scripts
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-glade2                 2.14.1-3   GTK+ bindings: Glade support
ii  python-gtk2                   2.14.1-3   Python bindings for the GTK+ widge
ii  python-support                1.0.3      automated rebuilding support for P
ii  python-vte                    1:0.20.5-1 Python bindings for the VTE widget
ii  xdg-utils                     1.0.2-6.1  desktop integration utilities from

Versions of packages live-magic recommends:
ii  cdebootstrap                  0.5.5      Bootstrap a Debian system

live-magic suggests no packages.

-- no debconf information



Reply to: