Missing dependency on python-simplejson

Bug #803475 reported by dobey
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restfulclient (Ubuntu)
Fix Released
Medium
dobey
Lucid
Fix Released
Medium
dobey

Bug Description

Impact: The python-lazr.restfulclient package on Lucid is missing a dependency on python-simplejson. As a result, anything which uses python-lazr.restfulclient and requires it working at build time via Build-Depends, will fail, due to the missing dependency. A workaround is to explicitly Build-Depends on python-simplejson as well, but this is the incorrect solution.

Development Fix: Already fixed by adding the dependency
Stable Fix: Add the dependency on python-simplejson
Test Case:
  1. Install python-lazr.restfulclient from lucid-updates
  2. Check that it doesn't depend on python-simplejson
  3. Install python-lazr.restfulclient from lucid-proposed
  4. Check that it does depend on python-simplejson
Regression Potential: low, just adding a dependency

Revision history for this message
dobey (dobey) wrote :

It looks like the Depends contains "python-simplejson | python (>= 2.6)" which doesn't work, because python 2.6 is installed by default on Lucid, and it does not provide a simplejson module, and lazr.restfulclient.resource does not fall back to just using "json" if simplejson import fails. It requires simplejson at all times.

dobey (dobey)
Changed in lazr.restfulclient (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Medium
milestone: none → lucid-updates
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

This is fixed in oneiric.

What is the user impact of this in lucid? It's certainly not an issue with build depends for an SRU?

Changed in lazr.restfulclient (Ubuntu):
status: In Progress → Fix Released
Changed in lazr.restfulclient (Ubuntu Lucid):
status: New → Incomplete
Revision history for this message
dobey (dobey) wrote :

It is low impact for Lucid. I ran into the problem building a package in a PPA that uses lazr.restfulclient, as it would fail in regression tests due to this. I've worked around it, but since this is a very simple and low impact fix, I think we should SRU it to Lucid as well.

Changed in lazr.restfulclient (Ubuntu Lucid):
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Medium
milestone: none → lucid-updates
status: Incomplete → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

It seems a little waste of packaging and QA resources to me, but I don't veto it. So please go ahead and upload it.

Revision history for this message
Chris Halse Rogers (raof) wrote :

SRU team ack. Please accept into lucid-proposed.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Rodney, or anyone else affected,

Accepted lazr.restfulclient into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in lazr.restfulclient (Ubuntu Lucid):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
dobey (dobey) wrote :

Does my verification still count, since I both reported and fixed the bug? :)

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 803475] Re: Missing dependency on python-simplejson

Excerpts from Rodney Dawes's message of Wed Jul 20 12:58:53 UTC 2011:
> Does my verification still count, since I both reported and fixed the
> bug? :)

It counts for something, but please do find somebody else who wasn't
involved in doing the fix itself to run through the test case (which I
don't see in the bug description, you should add a TEST CASE: there).

Revision history for this message
James Westby (james-w) wrote :

Checked that the new package works fine.

Thanks,

James

description: updated
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lazr.restfulclient - 0.9.11-1ubuntu1.2

---------------
lazr.restfulclient (0.9.11-1ubuntu1.2) lucid-proposed; urgency=low

  * debian/control:
     - Always require python-simplejson as python 2.6 does not provide it
       and lazr.restfulclient.resource does not use json on error instead.
       (LP: #803475)
 -- Rodney Dawes <email address hidden> Thu, 14 Jul 2011 15:55:51 +0200

Changed in lazr.restfulclient (Ubuntu Lucid):
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.