pycompile defaults to python 2.5, should use python 2.6 in Lucid

Bug #566441 reported by TuxInvader
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Fix Released
Medium
Unassigned
Lucid
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: python-minimal

A fresh install of Lucid installs python2.6, but the python compiler still defaults to using python2.5.

Unless I manually specify the python version on the command line (eg "pycompile -V 2.6 foo.py"), then I get the error:

  /bin/sh: python2.5: not found

*** SRU evalution ***

impact: as explained above pycompile fails unless given specific instructions how to work around the failure
dev branch: pycompile in maverick and beyond was completely rewritten and is either unaffected or would have to be patched completely differently
minimal patch is provided in the attachment
TEST CASE:
1) install python-defaults in lucid
2) cp /usr/bin/pycompile /tmp/pycompile.py
3) pycompile /tmp/compile.py

Step 3 will fail, but succeed with a patched package.

Revision history for this message
Matthias Klose (doko) wrote :

I can't reproduce this on a lucid live CD

Revision history for this message
TuxInvader (tuxinvader) wrote :

Hmmm Odd.

/usr/bin/pycompile on my systems has the following configuration:

SUPPORTED_VERSIONS = [(2, 5), (2, 6), (3, 1)]
DEFAULT_VERSION = (2, 5)

Obviously if I change the default version 2.6 I can compile without needing to specify the version on the command line.

Package: python-minimal
Essential: yes
Status: install ok installed
Priority: required
Section: python
Installed-Size: 120
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Source: python-defaults
Version: 2.6.5-0ubuntu1
Replaces: python (<= 2.4-1)
Depends: python2.6-minimal (>= 2.6.5), dpkg (>= 1.13.20)
Recommends: python
Conflicts: python (<= 2.4-1), python-central (<< 0.5.5)
Description: A minimal subset of the Python language (default version)
 This package contains the interpreter and some essential modules. It's used
 in the boot process for some basic tasks.
 See /usr/share/doc/python2.6-minimal/README.Debian for a list of the modules
 contained in this package.
Original-Maintainer: Matthias Klose <email address hidden>

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Is this still an issue?

Changed in python-defaults (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
Revision history for this message
Rolf Leggewie (r0lf) wrote :

yes, this is still an issue, I was able to reconfirm it.

Changed in python-defaults (Ubuntu):
assignee: Rolf Leggewie (r0lf) → nobody
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :
description: updated
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Both 2.6.5-0ubuntu1.1 and 2.6.5-0ubuntu2 are free to use as version numbers for this release. Looking at http://people.canonical.com/~ubuntu-archive/pending-sru.html it seems that these days there is a preference for -0ubuntu1.1. Pick the one you like best ;)

tags: added: patch
Revision history for this message
Aaron Griffith (agrif) wrote :

Just letting you know that python-minimal-2.6.5-0ubuntu1 is still the latest version in Lucid, and this bug is still present. This bug is a year old, Lucid is still LTS, and a patch is available.

And it is a bug. This causes an error message when installing any package that depends on pycompile, which many python packages do. Please, please fix this.

Matthias Klose (doko)
Changed in python-defaults (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Triaged
Changed in python-defaults (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Hello tuxinvader, or anyone else affected,

Accepted into raring-proposed. The package will build now and be available in a few hours in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Works here.

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

This bug was fixed in the package python-defaults - 2.6.5-0ubuntu1.1

---------------
python-defaults (2.6.5-0ubuntu1.1) lucid-proposed; urgency=low

  * default to python 2.6 for pycompile. LP: #566441.
 -- Rolf Leggewie <email address hidden> Sat, 16 Jul 2011 20:17:44 +0900

Changed in python-defaults (Ubuntu Lucid):
status: Triaged → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.