nautilus script-worker fails on 12.04

Bug #992581 reported by François Rey
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
High
Ding Zhou

Bug Description

After upgrading to version 0.7.0-1~precise4 (I also just upgraded to 12.04), I noticed my nautilus scripts were no longer working. In the command line the following errors is displayed:
Traceback (most recent call last):
  File "/usr/share/ubuntu-tweak/script-worker", line 31, in <module>
    from ubuntutweak.common.consts import *
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/common/consts.py", line 14, in <module>
    from gi.repository import GLib, Notify
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: 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".',))

$ python --version
Python 2.7.3
$ uname -a
Linux black 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: New → Confirmed
importance: Undecided → High
milestone: none → 0.7.1
assignee: nobody → Ding Zhou (tualatrix)
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → 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.