launchpad_service fails in Precise

Bug #1036450 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Fix Released
Medium
Michael Nelson

Bug Description

Hi,

As per RT#52768 to migrate staging Software Center Agent from dysprosium to emim, the preflight is reporting that launchpad_service is failing.

With help from achuni, we've found that it is because Precise ships with an updated version of python-launchpadlib and the API has changed.

Code:

from softwarecenteragent.utilities import WebServices
lp = WebServices().launchpad_service
bug = lp.bugs[1]

Produces:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/srv/sc.staging.ubuntu.com/staging/software-center-agent/src/softwarecenteragent/utilities.py", line 362, in launchpad_service
    self._set_launchpad_service()
  File "/srv/sc.staging.ubuntu.com/staging/software-center-agent/src/softwarecenteragent/utilities.py", line 195, in _set_launchpad_service
    version=settings.LP_VERSION)
TypeError: __init__() takes at least 4 arguments (4 given)

Could we please have this fixed?

Thanks,

Haw

Haw Loeung (hloeung)
tags: added: canonical-webops-ca
Changed in software-center-agent:
status: New → Fix Committed
Changed in software-center-agent:
assignee: nobody → Michael Nelson (michael.nelson)
importance: Undecided → Medium
Changed in software-center-agent:
milestone: none → 12.08.2
Dave Morley (davmor2)
Changed in software-center-agent:
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.