usb-creator-gtk fails to run on lubuntu13.04 beta 2

Bug #1165200 reported by urupica
68
This bug affects 15 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

usb-creator-gtk version: 0.2.47
systems: lubuntu desktop 13.04 beta 2 (live session and also after installing)

Error message:

ERROR:root:Could not find any typelib for GUdev
Traceback (most recent call last):
  File "/usr/bin/usb-creator-gtk", line 30, in <module>
    from usbcreator.backends.fastboot import FastbootBackend
  File "/usr/lib/python3/dist-packages/usbcreator/backends/fastboot/__init__.py", line 1, in <module>
    from usbcreator.backends.fastboot.backend import FastbootBackend
  File "/usr/lib/python3/dist-packages/usbcreator/backends/fastboot/backend.py", line 3, in <module>
    from gi.repository import GUdev
ImportError: cannot import name GUdev

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: usb-creator-gtk 0.2.47
ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
Uname: Linux 3.8.0-16-generic i686
ApportVersion: 2.9.2-0ubuntu5
Architecture: i386
Date: Fri Apr 5 19:32:32 2013
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: usb-creator
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
urupica (urupica) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1165200

tags: added: iso-testing
urupica (urupica)
description: updated
summary: - usb-creator-gtk fails to run on lubuntu 13.04 beta 2 live session
+ usb-creator-gtk fails to run on lubuntu13.04 beta 2
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
Changed in usb-creator (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Torsten Bronger (bronger) wrote :

I don't see a python3-gudev package in Ubuntu 13.04. If no other Python3 package contains gudev, we have a problem. Was the old usb-creator based on Python2? If so going back to it may be a solution.

Revision history for this message
Pierre (pierrewinnipeg) wrote :

Confirmed. It affects me also.

Soooo... frustrated with Usb-Creator. It was not working in 12.10 either because of a permission bug. And, there were problems before that.

It is really, really poorly maintained.

Revision history for this message
Yuri (wdwp) wrote :

I installed python-gudev and gir1.2-gudev-1.0 packages. usb-creator-gtk works.

Revision history for this message
Isaac Waldron (isaac-waldron) wrote :

Thanks Yuri!

I found that only the gir1.2-gudev-1.0 package is required on my 13.04 amd64 system. I don't have python-gudev installed and it works now.

Revision history for this message
Spiralofhope (spiralofhope) wrote :

I confirm that gir1.2-gudev-1.0 was also the missing package on my amd64 install.

Thanks for the fix Yuri.

Revision history for this message
Pierre (pierrewinnipeg) wrote :

Installing gir1.2-gudev-1 worked for me too.

I hope the dependencies are fixed as soon as possible as it seems to be affecting many people. Having a fix on the web is not enough.

Thanks Yuri & others.

Revision history for this message
Silas Cruse (silas-cruse) wrote :

Thank you yuri

Revision history for this message
Torsten Bronger (bronger) wrote :

Can anybody explain why Yuri's fix works? It doesn't on my 13.04 and I'd like to adapt it so that it works for me, too.

Is there an altarnative program? I have only one non-13.04 system left. If I upgrade it, I cannot create bootable USB sticks anymore. This is *really* the reason why this notebook of mine is still on 12.10! :-(

Revision history for this message
sudodus (nio-wiklund) wrote :

work-around: usb-creator-kde works for me in Lubuntu 13.04

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Looks to me like Yuri's suggested fix works because usb-creator-gtk does

  from gi.repository import GUdev

so it needs GUdev to be installed and visible to Python, and (by default) it is not.

Without spending time verifying this, I'd say the "fix" is probably just to make sure that the usb-creator-gtk package Recommends: the other packages it needs, including python-gudev and gir1.2-gudev-1.0 .

That should be a one line edit to debian/control in the source package. I might even have a go in an Lubuntu Raring VM later.

Those saying that installing these two packages does not fix it for them, please provide full details of the commands you ran to install them, and what happens when you then try to use usb-creator-gtk -- what error messages do you see, at what stage of using it?

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Tested in a fresh Lubuntu 13.04 VM. Adding gir1.2-gudev-1.0 allows usb-creator-gtk to run.

I have not created and tested a bunch of LiveUSB sticks this way, so whether in fact python-gudev is also needed for correct operation is a different (and as yet untested) issue. The bug reported in this Launchpad report, with the Python traceback relating to "from gi.repository import GUdev" is definitely fixed by ensuring that gir1.2-gudev-1.0 is installed.

So, the workaround at this point seems to be

  sudo apt-get install gir1.2-gudev-1.0

This is a tiny package, and should easily fit onto the Lubuntu 13.10 Saucy CD image.

Jonathan

Revision history for this message
sudodus (nio-wiklund) wrote :

Yuri (wdwp) wrote on 2013-05-15: #6

"I installed python-gudev and gir1.2-gudev-1.0 packages. usb-creator-gtk works."

Others wrote that it is enough with gir1.2-gudev-1.0

-o-

I started testing in a 5 year old desktop computer with an ASUS mobo and a dual core AMD 4400+ 64-bit CPU (but I stick to the 32-bit Lubuntu 13.04 iso file).

I tried adding only gir1.2-gudev-1.0 in Lubuntu 13.04 and it was possible to run usb-creator-gtk and make a live disk. It was also possible to make a casper-rw partition manually, add the boot option persistent (temporary) and have persistence. I did not manage to make it work with the built-in persistence. There was an error, and the bootloader was not copied to the USB drive, so the USB drive was dead.

-o-

Then I tried with usb-creator-kde and it worked out of the box.

-o-

I installed python-gudev, although I thought there was another bug too in usb-creator-gtk

The first attempt after installing python-gudev and updating/upgrading, usb-creator-gtk worked as well as the kde rival. So it seems the comment by Yuri was correct. The comments that only one of the packages was necessary were incorrect (it fixed only the live part, not the persistence).

I tested a second time without mounting the FAT32 partition on the USB drive. Then usb-creator-gtk stopped with segmentation fault (and failed to create a good USB boot drive). The partition was mounted after the crash, so usb-creator-gtk had mounted it. Restarting usb-creator-gtk made it successful. (So I did nothing but checking that the drive was mounted and restarting usb-creator-gtk.)

Then I tested again. I wiped the USB drive completely dd-overwriting with zeros, and making one FAT32 partition, and mounting the partition. This time usb-creator-gtk succeeded again to make a complete persistent live USB drive.

-o-

So my conclusion is:

1. Yuri's comment is correct. Both packages are necessary for all functions of usb-creator-gtk. The size of python-gudev (installed) is 80.9 kB and the size of gir1.2-gudev-1.0 (installed) is 50.2 kB according to apt-get.

2. But in addition, the partition on the USB drive should be mounted before usb-creator-gtk is started. Otherwise the process will crash with a segmentation fault. I guess this is another bug, but a minor bug. With proper instructions, usb-creator-gtk can be used to create live as well as persistent live USB drives.

*. So the packages python-gudev and gir1.2-gudev-1.0 should be included when usb-creator-gtk is installed. And the user should be told to mount the partition on the USB drive before starting usb-creator-gtk.

I hope some of you will also test usb-creator-gtk including persistence. I am going to make some noise about this, trying to get a working version at least in Saucy, but I hope it will also trickle down into 13.04.

Best regards
sudodus alias Nio

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Alright. we have a test package in my PPA at ppa:jmarsden/lubuntu for 13.04 Raring. Please test it and report results.

  sudo add-apt-repository ppa:jmarsden/lubuntu
  sudo apt-get update
  sudo apt-get install usb-creator-gtk # If it was not already installed

Jonathan

Revision history for this message
Thomas Beyer (tb-beyercenter) wrote :

@ Jonathan: well it starts but after/during bootloader installation in crashes again.
So this 2 pakvages whrer needed for usb-creator but didnt fix all bugs!

Revision history for this message
Thomas Beyer (tb-beyercenter) wrote :

installing usb-creator-kde works...

Revision history for this message
cyrpaut (cyrpaut) wrote :

Hi guys,
For your information installing the two packages fixed the bug on lubuntu 13.04. Good luck fixing the dependancies

Revision history for this message
Tim Lunn (darkxst) wrote :

This was fixed in Bug #1178057, the fix from there should be SRU'ed to 13.10

Revision history for this message
Thomas Dreibholz (dreibh) wrote :

I had the same problem "ERROR:root:Could not find any typelib for GUdev" on Ubuntu 13.04 (stable version, August 2013).

"sudo apt-get inatall gir1.2-gudev-1.0 libgudev-1.0-dev python-gudev" solved the problem for me. I think the issue is just missing dependencies for these 3 packages.

Revision history for this message
Jonathan (miareggeti) wrote :

This is a duplicate of a bug saying "Fixed released"

Changed in usb-creator (Ubuntu):
status: Confirmed → 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.