← Back to team overview

desktop-packages team mailing list archive

[Bug 1374794] Re: update-software-center crashed with AttributeError in __getattr__(): 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". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

 

*** This bug is a duplicate of bug 1367017 ***
    https://bugs.launchpad.net/bugs/1367017

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

** Changed in: software-center (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1374794

Title:
  update-software-center crashed with AttributeError in __getattr__():
  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". See:
  https://bugzilla.gnome.org/show_bug.cgi?id=709183

Status in software-center package in Ubuntu:
  Confirmed

Bug description:
  osuchwa@tata-laptop:~$ software-center
  /usr/share/software-center/softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.builder.add_from_file(path)
  /usr/share/software-center/softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkImageMenuItem:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.builder.add_from_file(path)
  /usr/share/software-center/softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkImageMenuItem:image is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.builder.add_from_file(path)
  /usr/share/software-center/softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.builder.add_from_file(path)
  2014-09-27 10:46:39,700 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
  2014-09-27 10:46:42,235 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
  2014-09-27 10:46:42,731 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
  2014-09-27 10:46:42,780 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
  2014-09-27 10:46:42,967 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
  2014-09-27 10:46:43,905 - softwarecenter.backend.reviews - WARNING - error creating bsddb: '(22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')' (corrupted?)
  2014-09-27 10:46:43,918 - softwarecenter.backend.reviews - ERROR - trying to repair DB failed
  Traceback (most recent call last):
    File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 358, in _save_review_stats_cache_blocking
      self._dump_bsddbm_for_unity(outfile, outdir)
    File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 377, in _dump_bsddbm_for_unity
      0600)
  DBInvalidArgError: (22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')
  /usr/share/software-center/softwarecenter/ui/gtk3/widgets/description.py:418: Warning: The property GtkImageMenuItem:accel-group is deprecated and shouldn't be used anymore. It will be removed in a future version.
    Gtk.STOCK_COPY, None)
  /usr/share/software-center/softwarecenter/ui/gtk3/app.py:558: Warning: The property GtkSettings:gtk-cursor-blink is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.available_pane.searchentry.grab_focus()
  /usr/share/software-center/softwarecenter/ui/gtk3/app.py:558: Warning: The property GtkSettings:gtk-cursor-blink-time is deprecated and shouldn't be used anymore. It will be removed in a future version.
    self.available_pane.searchentry.grab_focus()
  /usr/bin/software-center:184: Warning: Source ID 76 was not found when attempting to remove it
    Gtk.main()
  /usr/bin/software-center:184: Warning: Source ID 154 was not found when attempting to remove it
    Gtk.main()
  /usr/bin/software-center:184: Warning: The property GtkSettings:gtk-cursor-blink-timeout is deprecated and shouldn't be used anymore. It will be removed in a future version.
    Gtk.main()
  2014-09-27 10:46:50,064 - softwarecenter.backend.spawn_helper - WARNING - exit code 1 from helper for '['/usr/share/software-center/piston_generic_helper.py', '--datadir', '/usr/share/software-center/', '--needs-auth', '--no-relogin', 'SoftwareCenterAgentAPI', 'subscriptions_for_me', '{"complete_only": true}']'
  2014-09-27 10:46:50,066 - softwarecenter.backend.spawn_helper - WARNING - got error from helper: 'ERROR:softwarecenter.backend.ubuntusso:api.whoami failed with APIError: '401: {'status': '401', 'content-length': '22', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'content-language': 'en', 'strict-transport-security': 'max-age=15552000; includeSubDomains', 'vary': 'Authorization,Accept-Language,Cookie,Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu)', '-content-encoding': 'gzip', 'date': 'Sat, 27 Sep 2014 16:46:49 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'text/html; charset=utf-8', 'www-authenticate': 'OAuth realm="API"'}'
  Traceback (most recent call last):
    File "/usr/share/software-center/softwarecenter/backend/ubuntusso.py", line 119, in verify_token_sync
      res = api.whoami()
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/validators.py", line 120, in wrapper
      return func(self, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 131, in wrapper
      body = func(*args, **kwargs)
    File "/usr/share/software-center/softwarecenter/backend/piston/ubuntusso_pristine.py", line 22, in whoami
      scheme=AUTHENTICATED_API_SCHEME)
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 787, in _get
      extra_headers=extra_headers)
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 491, in get
      return self.request_url(url, method='GET', headers=headers)
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 435, in request_url
      body = handler.handle(response, response_body)
    File "/usr/lib/python2.7/dist-packages/piston_mini_client/failhandlers.py", line 116, in handle
      data=self.data)
  APIError: 401: {'status': '401', 'content-length': '22', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'content-language': 'en', 'strict-transport-security': 'max-age=15552000; includeSubDomains', 'vary': 'Authorization,Accept-Language,Cookie,Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu)', '-content-encoding': 'gzip', 'date': 'Sat, 27 Sep 2014 16:46:49 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'text/html; charset=utf-8', 'www-authenticate': 'OAuth realm="API"'}
  ERROR: can not obtain a oauth token
  '
  2014-09-27 10:46:50,067 - softwarecenter.db.update - WARNING - update_from_software_center_agent: error: 'ERROR:softwarecenter.backend.ubuntusso:api.whoami failed with APIError: \'401: {\'status\': \'401\', \'content-length\': \'22\', \'x-xss-protection\': \'1; mode=block\', \'x-content-type-options\': \'nosniff\', \'content-language\': \'en\', \'strict-transport-security\': \'max-age=15552000; includeSubDomains\', \'vary\': \'Authorization,Accept-Language,Cookie,Accept-Encoding\', \'server\': \'Apache/2.2.22 (Ubuntu)\', \'-content-encoding\': \'gzip\', \'date\': \'Sat, 27 Sep 2014 16:46:49 GMT\', \'x-frame-options\': \'SAMEORIGIN\', \'content-type\': \'text/html; charset=utf-8\', \'www-authenticate\': \'OAuth realm="API"\'}\'\nTraceback (most recent call last):\n  File "/usr/share/software-center/softwarecenter/backend/ubuntusso.py", line 119, in verify_token_sync\n    res = api.whoami()\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/validators.py", line 120, in wrapper\n    return func(self, *args, **kwargs)\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 131, in wrapper\n    body = func(*args, **kwargs)\n  File "/usr/share/software-center/softwarecenter/backend/piston/ubuntusso_pristine.py", line 22, in whoami\n    scheme=AUTHENTICATED_API_SCHEME)\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 787, in _get\n    extra_headers=extra_headers)\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 491, in get\n    return self.request_url(url, method=\'GET\', headers=headers)\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 435, in request_url\n    body = handler.handle(response, response_body)\n  File "/usr/lib/python2.7/dist-packages/piston_mini_client/failhandlers.py", line 116, in handle\n    data=self.data)\nAPIError: 401: {\'status\': \'401\', \'content-length\': \'22\', \'x-xss-protection\': \'1; mode=block\', \'x-content-type-options\': \'nosniff\', \'content-language\': \'en\', \'strict-transport-security\': \'max-age=15552000; includeSubDomains\', \'vary\': \'Authorization,Accept-Language,Cookie,Accept-Encoding\', \'server\': \'Apache/2.2.22 (Ubuntu)\', \'-content-encoding\': \'gzip\', \'date\': \'Sat, 27 Sep 2014 16:46:49 GMT\', \'x-frame-options\': \'SAMEORIGIN\', \'content-type\': \'text/html; charset=utf-8\', \'www-authenticate\': \'OAuth realm="API"\'}\nERROR: can not obtain a oauth token\n'
  /usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:548: Warning: Source ID 20 was not found when attempting to remove it
    super(MainLoop, self).run()
  2014-09-27 10:46:50,599 - softwarecenter.db.utils - INFO - software-center-agent finished with status 0
  2014-09-27 10:46:50,641 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,647 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,647 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,649 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,661 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,671 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,682 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,683 - softwarecenter.db.application - WARNING - document no longer valid after db reopen
  2014-09-27 10:46:50,687 - softwarecenter.db.application - WARNING - document no longer valid after db reopen

  ProblemType: Crash
  DistroRelease: Ubuntu 14.10
  Package: software-center 13.10-0ubuntu4.1
  ProcVersionSignature: Ubuntu 3.16.0-18.25-generic 3.16.3
  Uname: Linux 3.16.0-18-generic x86_64
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  Date: Fri Sep 26 23:16:54 2014
  ExecutablePath: /usr/share/software-center/update-software-center
  InstallationDate: Installed on 2013-09-20 (372 days ago)
  InstallationMedia: This
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/sbin/update-software-center --triggered /usr/share/locale-langpack
  ProcEnviron:
   LANGUAGE=en_CA:en
   TERM=xterm
   PATH=(custom, user)
   LANG=en_CA.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/sbin/update-software-center', '--triggered', '/usr/share/locale-langpack']
  SourcePackage: software-center
  Title: update-software-center crashed with AttributeError in __getattr__(): 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". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
  UpgradeStatus: Upgraded to utopic on 2014-09-27 (0 days ago)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1374794/+subscriptions