python-cups no longer depends on libcups2

Bug #883112 reported by Jonathan Reed
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cups (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
Medium
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

Somewhere between Natty and Oneiric, python-cups stopped depending on libcups2. This makes the package kind of useless, since all attempts to use it will result in "ImportError: libcups.so.2: cannot open shared object file: No such file or directory". Installing libcups2 manually fixes this error.

Revision history for this message
Jonathan Reed (jdreed) wrote :

On Natty:
$ apt-cache policy python-cups
python-cups:
  Installed: 1.9.54-0ubuntu1
  Candidate: 1.9.54-0ubuntu1
  Version table:
 *** 1.9.54-0ubuntu1 0
        500 http://mirrors.mit.edu/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cups
>>>

$ apt-cache show python-cups | grep Depends
Depends: libc6 (>= 2.4), libcups2 (>= 1.4.0), python (<< 2.8), python (>= 2.6), python-support (>= 0.90.0)

On Oneiric:

# apt-cache policy python-cups
python-cups:
  Installed: 1.9.59-0ubuntu0.1
  Candidate: 1.9.59-0ubuntu0.1
  Version table:
 *** 1.9.59-0ubuntu0.1 0
        500 http://localhost/ubuntu/ oneiric-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.9.58-0ubuntu1 0
        500 http://localhost/ubuntu/ oneiric/main amd64 Packages

# python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cups
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libcups.so.2: cannot open shared object file: No such file or directory
>>>

# apt-cache show python-cups | grep Depends
Depends: python2.7 | python2.6, python (>= 2.6), python (<< 2.8)

affects: launchpad → python-cups (Ubuntu)
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for reporting this to Ubuntu. This was accidentally dropped during the dh_python2 conversion. I'll be attaching patches shortly. Please report any other issues you may find.

tags: added: oneiric regression-release
Changed in python-cups (Ubuntu Oneiric):
importance: Undecided → High
status: New → Triaged
Changed in python-cups (Ubuntu Precise):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Micah Gersten (micahg)
Changed in python-cups (Ubuntu Oneiric):
assignee: nobody → Micah Gersten (micahg)
status: Triaged → In Progress
Revision history for this message
Micah Gersten (micahg) wrote :

This debdiff fixes the issue for precise.

Revision history for this message
Micah Gersten (micahg) wrote :

This patch fixes the issue for oneiric.

Changed in python-cups (Ubuntu Oneiric):
status: In Progress → Confirmed
Changed in python-cups (Ubuntu Precise):
status: In Progress → Confirmed
Changed in python-cups (Ubuntu Oneiric):
assignee: Micah Gersten (micahg) → nobody
Changed in python-cups (Ubuntu Precise):
assignee: Micah Gersten (micahg) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-cups - 1.9.59-0ubuntu1

---------------
python-cups (1.9.59-0ubuntu1) precise; urgency=low

  * fix LP: #883112 - python-cups no longer depends on libcups2; Add back
    ${shlibs:Depends}, accidentally dropped during the dh_python2 conversion
    - update debian/control
 -- Micah Gersten <email address hidden> Fri, 28 Oct 2011 11:56:07 -0500

Changed in python-cups (Ubuntu Precise):
status: Confirmed → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

barry uploaded this for me to oneiric-proposed, dropping severity to medium since libcups2 is installed by default

Changed in python-cups (Ubuntu Oneiric):
importance: High → Medium
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Jonathan, or anyone else affected,

Accepted python-cups into oneiric-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!

tags: added: verification-needed
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

After upgrade python-cups to version 1.9.59-0ubuntu0.2 the problem was fixed.

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

This bug was fixed in the package python-cups - 1.9.59-0ubuntu0.2

---------------
python-cups (1.9.59-0ubuntu0.2) oneiric-proposed; urgency=low

  * fix LP: #883112 - python-cups no longer depends on libcups2; Add back
    ${shlibs:Depends}, accidentally dropped during the dh_python2 conversion
    - update debian/control
 -- Micah Gersten <email address hidden> Fri, 28 Oct 2011 11:56:45 -0500

Changed in python-cups (Ubuntu Oneiric):
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.