Ubuntu Tweak crashes upon startup

Bug #1008282 reported by Steve Benchik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Incomplete
Undecided
Unassigned

Bug Description

Distribution: Xubuntu 12.04
Ubuntu Tweak: 0.7.2

stevetest@stevetest-VirtualBox:~$ ubuntu-tweak
Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 29, in <module>
    from gi.repository import Unique, GObject, Gdk, Gtk
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from gi.repository import GObject
  File "/usr/lib/python2.7/dist-packages/gi/repository/__init__.py", line 25, in <module>
    from ..importer import DynamicImporter
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 28, in <module>
    from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 26, in <module>
    from . import _glib, _gobject
  File "/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.py", line 58, in <module>
    sys.modules['from gi.repository import GObject'] = option
NameError: name 'option' is not defined

Revision history for this message
Ding Zhou (tualatrix) wrote :

Have you upgraded to the latest Xubuntu 12.04?

I guess something has broken with your system, could you try to run this command?

python -c 'from gi.repository import Unique, GObject, Gdk, Gtk'

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: New → Incomplete
Revision history for this message
Steve Benchik (jellofello112) wrote :

Yes I am running the latest Xubuntu (12.04). When running your solution, I get
stevetest@stevetest-VirtualBox:~$ python -c 'from gi.repository import Unique, GObject, Gdk, Gtk'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from gi.repository import GObject
  File "/usr/lib/python2.7/dist-packages/gi/repository/__init__.py", line 25, in <module>
    from ..importer import DynamicImporter
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 28, in <module>
    from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 172
    name = info.get_name()
                         ^
IndentationError: unindent does not match any outer indentation level

Revision history for this message
Ding Zhou (tualatrix) wrote :

Could you give me the output of "apt-cache show python-gobject"?

Revision history for this message
Steve Benchik (jellofello112) wrote :

stevetest@stevetest-VirtualBox:~$ apt-cache show python-gobject
Package: python-gobject
Priority: optional
Section: python
Installed-Size: 183
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Josselin Mouette <email address hidden>
Architecture: all
Source: pygobject
Version: 3.2.2-1~precise
Depends: python-gi (>= 3.2.2-1~precise), python-gobject-2
Filename: pool/main/p/pygobject/python-gobject_3.2.2-1~precise_all.deb
Size: 2468
MD5sum: e6e8d804d9286ef249939974b896edc3
SHA1: 142455b220e7bebe6e9fc147257fa8be5ea9b068
SHA256: 838b5b2d647e9fc98735acf47ba7062748c0824f6643497449bf9c8a8a6d8749
Description-en: Python 2.x bindings for GObject - transitional package
 This package will bring the two versions of GObject Python modules: the
 deprecated gobject module, and the new gobject-introspection system. It
 is here for upgrade purposes only. You can remove it safely when
 nothing else depends on it.
Description-md5: 0972cedec40e0869495e1025aa320af1
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, kubuntu-active-desktop, kubuntu-active-full, kubuntu-active, edubuntu-desktop, edubuntu-usb, edubuntu-desktop-kde, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master, lubuntu-desktop, ubuntustudio-desktop

Package: python-gobject
Priority: optional
Section: python
Installed-Size: 181
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Josselin Mouette <email address hidden>
Architecture: all
Source: pygobject
Version: 3.2.0-3
Depends: python-gi (>= 3.2.0-3), python-gobject-2
Filename: pool/main/p/pygobject/python-gobject_3.2.0-3_all.deb
Size: 2460
MD5sum: 1892977d7a12bb1e32160ed04d62f46b
SHA1: b4827ca2646fa7d9a819c64f508e94fc1d040294
SHA256: cb266ec3c8901028662fb04961f3c3b3491ff60eca45929ecf8d7e5f643a8ef4
Description-en: Python 2.x bindings for GObject - transitional package
 This package will bring the two versions of GObject Python modules: the
 deprecated gobject module, and the new gobject-introspection system. It
 is here for upgrade purposes only. You can remove it safely when
 nothing else depends on it.
Description-md5: 0972cedec40e0869495e1025aa320af1
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, kubuntu-active-desktop, kubuntu-active-full, kubuntu-active, edubuntu-desktop, edubuntu-usb, edubuntu-desktop-kde, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master, lubuntu-desktop, ubuntustudio-desktop

Revision history for this message
Ding Zhou (tualatrix) wrote :

Seem the python-gobject is the latest.

Please try to reinstall

    sudo apt-get install --reinstall python-gobject

Revision history for this message
Steve Benchik (jellofello112) wrote :

stevetest@stevetest-VirtualBox:~$ sudo apt-get install --reinstall python-gobject
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,468 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 188259 files and directories currently installed.)
Preparing to replace python-gobject 3.2.2-1~precise (using .../python-gobject_3.2.2-1~precise_all.deb) ...
Unpacking replacement python-gobject ...
Setting up python-gobject (3.2.2-1~precise) ...
stevetest@stevetest-VirtualBox:~$ ubuntu-tweak
Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 29, in <module>
    from gi.repository import Unique, GObject, Gdk, Gtk
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from gi.repository import GObject
  File "/usr/lib/python2.7/dist-packages/gi/repository/__init__.py", line 25, in <module>
    from ..importer import DynamicImporter
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 28, in <module>
    from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 140, in <module>
    g_type = info.get_g_type()
NameError: name 'info' is not defined

Revision history for this message
Ding Zhou (tualatrix) wrote :

I've no idea about this, because import GObject will also fail, at this moment Ubuntu Tweak hasn't started yet.

Could you try again by running these two command?

    python --version
    python -c 'from gi.repository import GObject'

Revision history for this message
Steve Benchik (jellofello112) wrote :

stevetest@stevetest-VirtualBox:~$ python --version
Python 2.7.3
stevetest@stevetest-VirtualBox:~$ python -c 'from gi.repository import GObject'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from gi.repository import GObject
  File "/usr/lib/python2.7/dist-packages/gi/repository/__init__.py", line 25, in <module>
    from ..importer import DynamicImporter
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 28, in <module>
    from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 140, in <module>
    g_type = info.get_g_type()
NameError: name 'info' is not defined
stevetest@stevetest-VirtualBox:~$

Revision history for this message
Steve Benchik (jellofello112) wrote :

I think it's safe to say this is not related to the latest python-gobject. I used a backup from about a month ago, updated python-gobject, rebooted, and ubuntu tweak ran fine. I'll see if this has anything to do with XFCE 4.10.

Revision history for this message
Ding Zhou (tualatrix) wrote :

OK, this is may caused by VirtualBox backup. I really have no idea about this.

Revision history for this message
upandacross (bren-upandacross) wrote :

So, ubuntu-tweak is dead?

Revision history for this message
Ding Zhou (tualatrix) wrote :

@upandacross

No, it is still under development.

Revision history for this message
Fred Olness (olness) wrote :

I'm seeing a similar problem in Ubuntu 13.10.

fred 31:% uname -a
Linux fred 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

fred 32:% ubuntu-tweak
Traceback (most recent call last):
  File "/usr/bin/X11/ubuntu-tweak", line 37, in <module>
    from ubuntutweak import system
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/system/__init__.py", line 4, in <module>
    from ubuntutweak.common.consts import APP, PKG_VERSION
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/common/consts.py", line 31, in <module>
    os.makedirs(TEMP_ROOT)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/users/olness/.config/ubuntu-tweak'

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.