[precise] kupfer does not launch

Bug #921829 reported by Jonathan Davies
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
kupfer
Fix Released
Undecided
Unassigned
kupfer (Ubuntu)
Fix Released
High
Unassigned

Bug Description

On a fresh install of precise from yesterday - kupfer fails to launch with this error:

$ kupfer
Kupfer: A free software (GPLv3+) launcher
 Copyright © 2007--2011 Ulrik Sverdrup with others
 http://kaizer.se/wiki/kupfer/

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))
Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer.py", line 4, in <module>
    main.main()
  File "/usr/share/kupfer/kupfer/main.py", line 174, in main
    gtkmain(quiet)
  File "/usr/share/kupfer/kupfer/main.py", line 152, in gtkmain
    from kupfer.ui import browser
  File "/usr/share/kupfer/kupfer/ui/browser.py", line 21, in <module>
    from kupfer.ui import listen
  File "/usr/share/kupfer/kupfer/ui/listen.py", line 34, in <module>
    class Service (ExportedGObject):
NameError: name 'ExportedGObject' is not defined

Related branches

Jonathan Davies (jpds)
Changed in kupfer (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in kupfer (Ubuntu):
status: New → Confirmed
Revision history for this message
Johan Boss (johanboss) wrote :

Can confirm I am seeing the same on an upgraded system from 11.10.

Jonathan Davies (jpds)
Changed in kupfer (Ubuntu):
milestone: none → precise-alpha-2
Revision history for this message
Mark Mandel (mark-mandel) wrote :

I have this bug in 11.10 as well.

Revision history for this message
Mark Mandel (mark-mandel) wrote :

Apologies - I had Calibre's PPA installed (https://launchpad.net/~n-muench/+archive/calibre), which has an updated python-qt4 in it - which I believe is backported from Precise - and causes this error.

I would love a quick workaround for this bug (as I love kupfer). Happy to muck around in the python code.

I attempted to replace all occurances of "import gobject" to "from gi.repository import GObject" as the error stated, but that didn't solve the issue.

Revision history for this message
Hicks (hicks1gb) wrote :

kupfer
Kupfer: Un lanzador de aplicaciones libre (GPLv3+)
        Copyright © 2007--2011 Ulrik Sverdrup with others
        http://kaizer.se/wiki/kupfer/

could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))
Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer.py", line 4, in <module>
    main.main()
  File "/usr/share/kupfer/kupfer/main.py", line 174, in main
    gtkmain(quiet)
  File "/usr/share/kupfer/kupfer/main.py", line 152, in gtkmain
    from kupfer.ui import browser
  File "/usr/share/kupfer/kupfer/ui/browser.py", line 21, in <module>
    from kupfer.ui import listen
  File "/usr/share/kupfer/kupfer/ui/listen.py", line 34, in <module>
    class Service (ExportedGObject):
NameError: name 'ExportedGObject' is not defined

Revision history for this message
Jan Vlnas (jnv) wrote :

Had the same problem on 11.10 as well. It has appeared once I've upgraded packages using Calibre PPA as Mark mentioned - but the source of the problem was python-dbus package (Kupfer shouldn't be affected by python-qt4 since it uses GTK). Once I've downgraded python-dbus from v1.0.0 to Oneiric's v0.84, Kupfer started to work.
Therefore I think you should take a look at python-dbus compatibility.

Colin Watson (cjwatson)
Changed in kupfer (Ubuntu):
milestone: precise-alpha-2 → ubuntu-12.04-beta-1
Revision history for this message
Johan Boss (johanboss) wrote :

Jan is correct, downgrading python-dbus to 0.84 worked for me too.

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

It's been a long time since I tried porting Kupfer to gi (previsouly it stalled on porting gtk styles). It's a big project and not something I'm able to work on at the moment.

Also relevant: https://bugs.launchpad.net/ubuntu/+source/ubuntuone-control-panel/+bug/829186

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Please test latest git http://git.gnome.org/browse/kupfer/ where I've copied the very small file gobject_service.py from dbus-python into kupfer. It seems to work fine on my virtualbox of ubuntu 12.04 :-) the patch also seems to apply to version 206.

Changed in kupfer:
assignee: nobody → Ulrik Sverdrup (ulrik-sverdrup)
Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :
Revision history for this message
Jonathan Davies (jpds) wrote :

I can confirm that the fix works.

Changed in kupfer (Ubuntu):
status: Confirmed → Fix Committed
Changed in kupfer:
status: New → Fix Committed
Revision history for this message
cuc (cuc+) wrote :

#10 fixes it, thx :)

Changed in kupfer:
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in kupfer (Ubuntu):
milestone: ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2
Revision history for this message
Luke has no name (lukehasnoname) wrote :

Help me understand: If a fix was committed and released on the 26th, why is it not available in the repositories now?

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Luke, I'm the upstream maintainer and I released a new fixed version. This bug is also tracked for the kupfer package in ubuntu, and I don't influence that.

Revision history for this message
Durand D'souza (durand1) wrote :

Thanks Ulrik! I've been really missing kupfer since I upgraded to precise. Now to see how to get it updated in the repos...

komputes (komputes)
tags: added: css-sponsored-p
Revision history for this message
Vibhav Pant (vibhavp) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks everyone for your work on this.

I took the liberty of fixing some things in the debdiff in comment 16:
 - ran 'update-maintainer' to satisfy https://wiki.ubuntu.com/DebianMaintainerField
 - re-indented some of the changelog entry bits (please wrap at 80 chars per line)
 - applied the patch from git without modifications (the patch in the debdiff was reindented
   which made python unhappy - the resulting package did not even install)

Revision history for this message
Daniel Holbach (dholbach) wrote :

I just uploaded the fix and it will sit in the review queue of the archive admins / release team.

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

This bug was fixed in the package kupfer - 0+v206+dfsg-1ubuntu1

---------------
kupfer (0+v206+dfsg-1ubuntu1) precise; urgency=low

  * kupfer/dbuscompat.py
    - copied gobject_service.py verbatim from dbus-python version 0.84.0 to
      kupfer/dbuscompat.py (LP: #921829)
 -- Vibhav Pant <email address hidden> Sat, 24 Mar 2012 21:11:51 +0530

Changed in kupfer (Ubuntu):
status: Fix Committed → 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.