Natty broken dependency with python

Bug #688002 reported by Jaime Sánchez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
High
Till Kamppeter

Bug Description

Binary package hint: hplip

Hi,

Trying to install HPLIP on natty throws this error:

The following packages have unmet dependencies:
 hplip : Depends: python (< 2.7) but 2.7.1-0ubuntu1 is to be installed

Regards,
Jaime

Tags: python27

Related branches

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Will need to get rebuilt for new Python version.

Changed in hplip (Ubuntu):
status: New → Triaged
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

This is getting built on the proper python version after doko's rebuild. The problem is, it still depends on python << 2.7.

Changed in hplip (Ubuntu):
assignee: nobody → Bilal Akhtar (bilalakhtar)
importance: Undecided → High
milestone: none → natty-alpha-2
status: Triaged → In Progress
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Un-assigning myself for sponsorship.

Changed in hplip (Ubuntu):
assignee: Bilal Akhtar (bilalakhtar) → nobody
tags: added: python27
Changed in hplip (Ubuntu):
status: In Progress → Triaged
Changed in hplip (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
status: Triaged → In Progress
Revision history for this message
Stefano Rivera (stefanor) wrote :

Your change to XS-P-V is incorrect, that variable states which versions of python the source code supports, >=2.5 includes 2.7.

Do we really need the python version restrictions in Depends? The package depends on Python:Versions, which means python-support should handle this for us.

In fact, here's a patch that should do the right thing

Revision history for this message
Stefano Rivera (stefanor) wrote :

BTW, I also see some .pyc files in hplip-data, I'll raise that with Debian.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Uploaded. Thank you for the patch.

Changed in hplip (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.10.9-0ubuntu4

---------------
hplip (3.10.9-0ubuntu4) natty; urgency=low

  * debian/control: Modify Depends: and XS-Python-Versions: to build with,
    and depend on python 2.7 (LP: #688002).
 -- Bilal Akhtar <email address hidden> Fri, 10 Dec 2010 11:06:14 +0300

Changed in hplip (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

It was only Bilal's patch which I uploaded. Stefano's version seems the better solution for me. I will upload that one now. Especially it is better as the source package is identically used in Debian and Debian perhaps did not switch over to Python 2.7 yet.

Changed in hplip (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thanks, Bilal and Stefano for your patches. I have now uploaded Stefano's patch as -0ubuntu5.

Changed in hplip (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.10.9-0ubuntu5

---------------
hplip (3.10.9-0ubuntu5) natty; urgency=low

  * debian/control: Remove hard-coded python-version dependencies (LP: #688002)
 -- Stefano Rivera <email address hidden> Fri, 10 Dec 2010 10:27:59 +0200

Changed in hplip (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Stefano, the problem with the shipped .pyc files I have fixed now for both Debian and Ubuntu. The fix is committed to the Debian SVN repository of HPLIP and also applied to the Ubuntu package -0ubuntu6. It should also appear in the next HPLIP package in Debian unstable. So no bug report at Debian needed any more.

Revision history for this message
Stefano Rivera (stefanor) wrote : Re: [Bug 688002] Re: Natty broken dependency with python

> Stefano, the problem with the shipped .pyc files I have fixed now for
> both Debian and Ubuntu.

Till, is the correct fix not to get pysupport to manage
/usr/share/hplip/ ?

(Or even better, migrate to dh_python2, and get it to)

Either of those should remove .pyc files during the build, and
automatically build them in postinst, and rebuild them when the system's
default python version changes. (Private module mode)

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.