NameError Traceback running usb-creator-gtk from CLI

Bug #1497431 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

bladernr@sulaco:~$ usb-creator-gtk --show-all
^CTraceback (most recent call last):
  File "/usr/bin/usb-creator-gtk", line 74, in <module>
    allow_system_internal=options.allow_system_internal)
  File "/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py", line 185, in __init__
    self.backend.detect_devices()
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 73, in detect_devices
    self._udisks_obj_added(obj)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 98, in _udisks_obj_added
    self._udisks_partition_added(obj, block, drive, path)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 183, in _udisks_partition_added
    self.target_added_cb(device)
NameError: name 'device' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py", line 523, in column_data_func
    def column_data_func(layout, cell, model, iterator, column):
KeyboardInterrupt

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: usb-creator-gtk 0.2.56.3ubuntu0.2
ProcVersionSignature: Ubuntu 3.13.0-62.101-generic 3.13.11-ckt24
Uname: Linux 3.13.0-62-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Sep 18 15:46:02 2015
InstallationDate: Installed on 2012-03-15 (1281 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120307)
SourcePackage: usb-creator
UpgradeStatus: Upgraded to trusty on 2014-04-20 (516 days ago)

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :
Revision history for this message
Jeff Lane  (bladernr) wrote :

The traceback is only revealed on console if I try to exit usb-creator-gtk via a CTRL-C. See the screenshot attached for what the user sees without ctrl-c from CLI

Note, to reveal that trace, I had to do the following:

1: Call tool
  $ usb-creator-gtk --show-all

2: When the error dialog opens, hit CTRL-C inside the terminal that the tool was launched from

3: Return to the GTW window and click the Close button on the error dialog

Then the app closes and the trace is dumped to console.

The trace is NOT dumped to console if I only click the Close button on the error dialog.

Changed in usb-creator (Ubuntu):
status: New → In Progress
Revision history for this message
Jeff Lane  (bladernr) wrote :

FWIW, this appears to be broken in all three trusty versions, but I presume the fix linked above will trickle down via updates.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.3.0

---------------
usb-creator (0.3.0) xenial; urgency=medium

  [ Marc Deslauriers ]
  * Rework the whole imaging process for writing to devices:
    - Use an equivalent of dd to make an exact copy of the image to the device
    - This also breaks persistence.

  [ Mathieu Trudel-Lapierre ]
  * Update UI and frontend code to drop the persistence widgets.
  * Drop Erase Disk widgets too.

 -- Mathieu Trudel-Lapierre <email address hidden> Fri, 11 Dec 2015 12:37:41 -0500

Changed in usb-creator (Ubuntu):
status: In Progress → Fix Released
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.