The problem seems triggered by the fake cdroms on SanDisk Cruzers

Following the stack trace ...

 /usr/lib/python3.4/bdb.py(431)run()
-> exec(cmd, globals, locals)
  <string>(1)<module>()
  /usr/bin/usb-creator-gtk(74)<module>()
-> allow_system_internal=options.allow_system_internal)
  
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py(185)__init__()
-> self.backend.detect_devices()
  
/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(73)detect_devices()
-> self._udisks_obj_added(obj)
  
/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(92)_udisks_obj_added()
-> self._udisks_cdrom_added(obj, block, drive, path)
  
/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(111)_udisks_cdrom_added()
-> mount = fs.mount_sync(no_options, None)
> /usr/lib/python3/dist-packages/gi/overrides/Gio.py(152)__call__()
-> raise TypeError('first argument must be the method signature string: %r' % 
signature)

.. of the exception which is trigered by

      if not isinstance(signature, str):

on line 151 on /usr/lib/python3/dist-packages/gi/overrides/Gio.py

prints in pdb3 give following values for the arguments:

  p signature
  GLib.Variant('a{sv}', {})

  p str
  <class 'str'>

Unfortunately, my knowledge of glib/dbus is zilch and python minimal
so i gave up and simply commented out lines 91-92 of

   /usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py

the lines

       if drive and drive.get_cached_property('Optical').get_boolean():
            self._udisks_cdrom_added(obj, block, drive, path)


Obviously that hack wouldn't work if you want to clone an actual cd in
the cdrom drive but works perfectly for .iso images

btw: Bug #1279987 seems a duplicate of this

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1302295

Title:
  usb-creator-gtk errors during app startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1302295/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to