usb creator missing python-gnome2 dependency

Bug #316077 reported by Wesley Velroij
82
This bug affects 10 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Jaunty by FriedChicken

Bug Description

Binary package hint: usb-creator

Hello, when i wanted to start usb-creator to create a live usb, it didnt start, i have started it in konsole, so i could provide details for ubuntu.

wesley@Dexter:~$ sudo usb-creator
[sudo] password for wesley:
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.5/site-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] Bestand bestaat al: '/var/crash/_usr_bin_usb-creator.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.5/site-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs
wesley@Dexter:~$ dpkg -S usb-creator
usb-creator: /usr/share/man/man8/usb-creator.8.gz
usb-creator: /usr/share/applications/usb-creator.desktop
usb-creator: /usr/share/usb-creator/usbcreator.glade
usb-creator: /usr/bin/usb-creator
usb-creator: /usr/share/usb-creator
usb-creator: /usr/share/pyshared-data/usb-creator
usb-creator: /usr/share/doc/usb-creator/changelog.gz
app-install-data: /usr/share/app-install/desktop/usb-creator.desktop
usb-creator: /usr/share/pixmaps/usb-creator.png
usb-creator: /usr/share/usb-creator/install.py
usb-creator: /usr/share/doc/usb-creator/copyright
usb-creator: /usr/share/doc/usb-creator
usb-creator: /usr/share/omf/usb-creator
wesley@Dexter:~$ apt-cache usb-creator
E: Ongeldige operatie usb-creator
wesley@Dexter:~$ apt-cache policy usb-creator
usb-creator:
  Geïnstalleerd: 0.1.11
  Kandidaat: 0.1.11
  Versietabel:
 *** 0.1.11 0
        500 http://nl.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
wesley@Dexter:~$

What i can get out of it is that its probaly a dependies issues, i can confirm this dist happing in 8.10 because ive used yesterday usb-creator in 8.10, it is on moment only effecting 9.04

Revision history for this message
Shaved Wookie (shavedwookie) wrote :

Confirmed on Kubuntu 9.04 Alpha 4 (AMD64).

Full error message is as follows:
"Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.5/site-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_bin_usb-creator.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.5/site-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs"

Changed in usb-creator:
status: New → Confirmed
Revision history for this message
Shaved Wookie (shavedwookie) wrote :

Seems to work now in Jaunty. Unsubscribing.

Revision history for this message
Shaved Wookie (shavedwookie) wrote :

Sorry. That comment was meant to be posted on a *different* bug report. :(

Revision history for this message
robb990099 (rebrown) wrote :

my installation is on an AMD64 using Mythbuntu 9.04 Alpha 6.1.

Revision history for this message
Giuseppe Bottiglieri (giuseppe-bottiglieri) wrote :

I have this bug on Kubuntu Jaunty Alpha 6

Revision history for this message
Giuseppe Bottiglieri (giuseppe-bottiglieri) wrote :

ok fixed, there is the need to add the python-gnome2 dependency

Revision history for this message
Wesley Velroij (velroy1) wrote :

Tried today again, and doesnt work, I get a shorter ouput, but still pointing to ImportError: No module named gnomevfs, so has to do something with gnomevfs.

wesley@Dexter:~$ sudo usb-creator
[sudo] password for wesley:
wesley@Dexter:~$ sudo usb-creator
[sudo] password for wesley:
Sorry, try again.
[sudo] password for wesley:
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.6/dist-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs
wesley@Dexter:~$

We are going into beta and jaunty is still a mess, i have freezings to on kubuntu.

Revision history for this message
Shaved Wookie (shavedwookie) wrote :

This is working fine for me now on an up to date Jaunty. I do have a lot of various packages installed on it though, so maybe I accidently got the needed depenency.

Revision history for this message
Wesley Velroij (velroy1) wrote :

Okay installing python-gnome2 dependency worked for me indeed, with this bug is solved, but please add it upstream and update it so when the finnaly is out there it will work without people having to google.

Wesley Velroij (velroy1)
Changed in usb-creator:
status: Confirmed → Fix Released
Revision history for this message
FriedChicken (domlyons) wrote :

I don't believe the fix released...

On Kubuntu 9.04 RC:

$ usb-creator
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.6/dist-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 93, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 13] Permission denied: '/var/crash/_usr_bin_usb-creator.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.6/dist-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs

I've tried
   $ sudo apt-get install --reinstall usb-creator
to see if there are unresolved dependecies. But there were none.

After installing python-gnome2 it worked.
I think this dependency should be added until the release of Jaunty.

Changed in usb-creator (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
stuartmarsden (stuartmarsden) wrote :

Not fixed. I suspect those saying fixed run ubuntu so have the gnome dependencies anyway. On kubuntu still have the error. The usb-creator package needs to specifically depend on python-gnome2. This is not fixed and must be or kubuntu will not have the ability to do usb stick setup.

Revision history for this message
s_saksonovs (saksonovs-sergejs) wrote :

This is still not working with fully updated Jaunty.

The output produced in the terminal is:

Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
  File "/usr/lib/python2.6/dist-packages/usbcreator/gtk_frontend.py", line 25, in <module>
    import gnomevfs
ImportError: No module named gnomevfs

Installing python-gnome2 solves the problem, but by default the system does not work.

Revision history for this message
s_saksonovs (saksonovs-sergejs) wrote :

I am running Kubuntu Jaunty - so the dependencies do not work there.

Revision history for this message
Dmitry Ilyin (widgetii) wrote :

This bug in my Kubuntu 9.04 too

Revision history for this message
Renato S. Yamane (renatoyamane) wrote :

Hi,
This bug have 4 months old.
Is very hard add python-gnome2 as dependency of usb-creator in KUbuntu?

Regards,
Renato S. Yamane

Revision history for this message
urusha (urusha) wrote :

Yes, kubuntu 9.04, confirmed, it's uncomfortable

Revision history for this message
H.i.M (hir-i-mogul-gmail) wrote :

This bug is still reproducable on Kubuntu 9.04!

Revision history for this message
TimArbuckle (timarbuckle) wrote :

Another confirmation of the problem in Jaunty x86_64 :

$ sudo usb-creator
Traceback (most recent call last):
  File "/usr/bin/usb-creator", line 21, in <module>
    from usbcreator.gtk_frontend import GtkFrontend
ImportError: No module named usbcreator.gtk_frontend

attempted to purge then install and received:

$ sudo apt-get purge usb-creator
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  usb-creator*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 569kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 127796 files and directories currently installed.)
Removing usb-creator ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2190, in <module>
    main()
  File "/usr/bin/pycentral", line 2184, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1638, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 276, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing usb-creator (--purge):
 subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2190, in <module>
    main()
  File "/usr/bin/pycentral", line 2184, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1472, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 276, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 usb-creator
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
TimArbuckle (timarbuckle) wrote :

After i posted i noticed my default python version was set to 2.5. I changed that to 2.6 and both problems have resolved. Perhaps the python version is a factor in the others errors?

Revision history for this message
Justin Brown (fandingo) wrote :

Tim, how do you change the default version of python?

Revision history for this message
Murillo Fernandes Bernardes (mfbernardes) wrote :

This bug is still reproducable on Kubuntu 9.10 alpha 2.

Revision history for this message
Jonathan Jesse (jjesse) wrote :

i know there is work on a kde frontend. is there any way we can get a bump on this bug. took a lot of googling to find this bug, maybe up the google karma on this?

Revision history for this message
Scott Kitterman (kitterman) wrote :

The next upload should have the KDE version in it, but this should definitely be fixed.

Changed in usb-creator (Ubuntu):
importance: Undecided → Medium
milestone: none → karmic-alpha-3
status: Confirmed → Triaged
Revision history for this message
Kurt Pfeifle (pfeifle) wrote :

This bug is also in Kubuntu 9.10 (beta) as tested with a daily-live CD image.

Revision history for this message
Ben Lau (benlau) wrote :

I can confirm that the bug can be resolved by set the default python version from 2.5 to 2.6. However , there has applications that are not compatible with python 2.6 (e.g Google App Engine SDK). I think it need to rebuild the usb-creator package for python 2.5

Revision history for this message
karl (karl-sebastian-liebich) wrote :

confirmed for 9.04/amd64 - had to manually add python-gnome2 - pls set correct depencies

thx
karl

Revision history for this message
Evan (ev) wrote :

This was fixed by Roderick B. Greening in r117 (usb-creator 0.2.0). usb-creator now depends on python-gnome2.

Changed in usb-creator (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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