usb-creator-gtk does not work: "Installation Failed"

Bug #1273739 reported by Sergio Benjamim
This bug report is a duplicate of:  Bug #1289314: 'Installation failed' error message. Edit Remove
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Confirmed
High
Unassigned

Bug Description

usb-creator-gtk does not working, when i try to create a disk i got a window message like: "Installation Fails"

usb-creator-gtk

** (usb-creator-gtk:32270): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-nTY7rREXZN: Connexion refusée
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py:38: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py:615: PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  buttons=(Gtk.STOCK_CANCEL,Gtk.ResponseType.CANCEL,Gtk.STOCK_OPEN,Gtk.ResponseType.OK))

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: usb-creator-gtk 0.2.53
ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
Uname: Linux 3.13.0-5-generic x86_64
ApportVersion: 2.13.2-0ubuntu2
Architecture: amd64
Date: Tue Jan 28 18:02:19 2014
InstallationDate: Installed on 2014-01-09 (19 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140109)
ProcEnviron:
 LANGUAGE=fr_FR
 TERM=xterm
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: usb-creator
UDisksDump: Error: [Errno 2] Aucun fichier ou dossier de ce type: 'udisks'
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sergio Benjamim (sergio-br2) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usb-creator (Ubuntu):
status: New → Confirmed
summary: - usb-creator-gtk does not working
+ usb-creator-gtk does not work: "Installation Failed"
Revision history for this message
Данило Шеган (danilo) wrote :

Similarly for me, in trusty as well.

Terminal output of running usb-creator-gtk doesn't say much either:

$ usb-creator-gtk
/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py:38: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
$

Commenting out the exception-swallowing try-except in gtk/frontend.py install(), I get a better error message:

/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py:38: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py", line 655, in install
    allow_system_internal=self.allow_system_internal)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 312, in install
    source = self.helper.MountISO(isofile)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeDecodeError: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/usb-creator/usb-creator-helper", line 270, in MountISO
    popen(['mount', '-o', 'loop', device, ret])
  File "/usr/lib/python3/dist-packages/usbcreator/misc.py", line 170, in popen
    out, err = process.communicate()
  File "/usr/lib/python3.3/subprocess.py", line 921, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.3/subprocess.py", line 1570, in _communicate
    self.stderr.encoding)
  File "/usr/lib/python3.3/subprocess.py", line 846, in _translate_newlines
    data = data.decode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 33: ordinal not in range(128)

This led to identifying the problem: my .img file (actually, my entire download folder) is in a directory containing UTF-8 characters. Simply moving the .img file to a path containing no Unicode allowed usb-creator-gtk to create an image from it.

Changing the locale itself didn't help, except that running in C locale made it crash even earlier.

Revision history for this message
Данило Шеган (danilo) wrote :

Actually, that wasn't enough, still investigating.

Revision history for this message
Данило Шеган (danilo) wrote :

Ok, the problem now was that all the loop devices were already used. Umounted them all, and it does indeed progress now (at "copying files" now).

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

It prevents the package (or a dependent one) from functioning correctly at all.

Changed in usb-creator (Ubuntu):
importance: Undecided → High
tags: added: rls-t-incoming
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I had the same issue, the problem was that the localized name of the "Downloads" folder contained non-ascii characters (Stažené). As workaround, move the .iso to /tmp or ~ (if that one is ascii-clean) and select it using the "other" button.

If it fails nevertheless , you are having another issue than me.

Revision history for this message
Jan Kronborg (magic75) wrote :

Confirming Václavs conclusion in post #7. Moving the ISO to a folder that does not contain local characters (Swedish åäö in my case), "solves" the problem.

Revision history for this message
Balage (regenyi-balazs) wrote :

@eudoxos (Václav Šmilauer) yes, your answer #7 was the problem for me too, thx a lot yout work around!! :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.