[Bug 1026066] Re: software-properties-gtk crashed with ImportError in /usr/lib/python3/dist-packages/aptdaemon/client.py: No module named gobject

Edward Donovan launchpad at numble.net
Thu Jul 19 00:03:07 UTC 2012


So, as of version 0.89, software-properties-gtk uses aptdaemon's client
module, client.py.  And that's breaking.

/usr/lib/python3/dist-packages/aptdaemon/client.py has this at line 40:

if 'gi.repository' in sys.modules:
    from gi.repository import GObject
else:
    import gobject as GObject

I don't know if it should be getting it from 'gi.repository', but it's
not.  And then the 'else' import statement isn't working either.

Nor do I know yet, if client.py is purely broken there, or if software-
properties-gtk isn't quite importing it correctly.  Maybe there's a
missing dependency that the developers had on their machine, but the
reporters don't?  But I've tried a few gobject packages and haven't hit
on anything.


** Changed in: aptdaemon (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1026066

Title:
  software-properties-gtk crashed with ImportError in /usr/lib/python3
  /dist-packages/aptdaemon/client.py: No module named gobject

Status in “aptdaemon” package in Ubuntu:
  Confirmed
Status in “software-properties” package in Ubuntu:
  Confirmed

Bug description:
  This is what happens when I try to run software-properties-gtk:

  andrei at andrei-quantal:~$ software-properties-gtk
  Traceback (most recent call last):
    File "/usr/bin/software-properties-gtk", line 37, in <module>
      from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
    File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 34, in <module>
      from aptdaemon import client
    File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 43, in <module>
      import gobject as GObject
  ImportError: No module named gobject

  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: software-properties-gtk 0.89
  ProcVersionSignature: Ubuntu 3.5.0-4.4-generic 3.5.0-rc6
  Uname: Linux 3.5.0-4-generic i686
  ApportVersion: 2.3-0ubuntu4
  Architecture: i386
  Date: Wed Jul 18 13:35:09 2012
  ExecutablePath: /usr/bin/software-properties-gtk
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120717.1)
  InterpreterPath: /usr/bin/python3.2mu
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3.2 /usr/bin/software-properties-gtk
  ProcEnviron:
   TERM=xterm
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/bin/software-properties-gtk']
  SourcePackage: software-properties
  Title: software-properties-gtk crashed with ImportError in /usr/lib/python3/dist-packages/aptdaemon/client.py: No module named gobject
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1026066/+subscriptions




More information about the foundations-bugs mailing list