← Back to team overview

desktop-packages team mailing list archive

[Bug 912855] Re: submit_review_gtk3.py crashed with TypeError in _maybe_login_successful(): get_ubuntu_sso_backend() takes no arguments (1 given)

 

I think I know how to fix this crash. I have attached a modified version
of /usr/share/software-center/submit_review_gtk3.py containing the fix,
as suggested by someone in Ask Ubuntu general chat. The problem is an
unneeded function argument at line 489.

Since I couldn't get bzr working on grabbing the source and fixing it
the "proper" way, I just modified that file and ran the Software Center
from a terminal afterwards to confirm the crash was fixed.

(This is my first time trying to actually fix a bug...please go easy on
me.)

** Attachment added: "Fixed version of submit_review_gtk3.py"
   https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/912855/+attachment/2660950/+files/submit_review_gtk3.py

-- 
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/912855

Title:
  submit_review_gtk3.py crashed with TypeError in
  _maybe_login_successful(): get_ubuntu_sso_backend() takes no arguments
  (1 given)

Status in “software-center” package in Ubuntu:
  Triaged

Bug description:
  crash on attempt write a review

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: software-center 5.1.5.1
  ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
  Uname: Linux 3.2.0-7-generic i686
  ApportVersion: 1.90-0ubuntu1
  Architecture: i386
  Date: Fri Jan  6 20:33:20 2012
  EcryptfsInUse: Yes
  ExecutablePath: /usr/share/software-center/submit_review_gtk3.py
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111129.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/share/software-center/submit_review_gtk3.py --pkgname remmina --iconname remmina --parent-xid  --version 0.9.3-3 --origin ubuntu --datadir /usr/share/software-center/ --appname Remmina\ Remote\ Desktop\ Client
  PythonArgs: ['/usr/share/software-center/submit_review_gtk3.py', '--pkgname', 'remmina', '--iconname', 'remmina', '--parent-xid', '', '--version', '0.9.3-3', '--origin', 'ubuntu', '--datadir', '/usr/share/software-center/', '--appname', 'Remmina Remote Desktop Client']
  SourcePackage: software-center
  Title: submit_review_gtk3.py crashed with TypeError in _maybe_login_successful(): get_ubuntu_sso_backend() takes no arguments (1 given)
  Traceback:
   Traceback (most recent call last):
     File "/usr/share/software-center/submit_review_gtk3.py", line 489, in _maybe_login_successful
       self.ssoapi = get_ubuntu_sso_backend(self.token)
   TypeError: get_ubuntu_sso_backend() takes no arguments (1 given)
  UpgradeStatus: Upgraded to precise on 2011-12-17 (19 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

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