Python 2.7 missing in debian_defaults

Bug #654826 reported by Dag Odenhall
86
This bug affects 17 people
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Maverick has a package for Python 2.7. When installed, some APT operations show this:

INFO: using unknown version '/usr/bin/python2.7' (debian_defaults not up-to-date?)

$ cat /usr/share/python/debian_defaults
[DEFAULT]
# the default python version
default-version = python2.6

# all supported python versions
supported-versions = python2.6

# formerly supported python versions
old-versions = python2.3, python2.4, python2.5

# unsupported versions, including older versions
unsupported-versions = python2.3, python2.4, python2.5

Tags: maverick
Revision history for this message
Kojot350 (kojot350) wrote :

Why this bug is still on 'new'? It seams trivial.

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

fixed in natty, nothing to fix in maverick

Changed in python-defaults (Ubuntu):
status: New → Fix Released
Revision history for this message
F. Hantho (hantho) wrote :

Sorry if I am missing something obvious but what do you mean "nothing to fix in maverick"?

1) that we should ignore it because it doesn't matter?
2) that the fix doesn't apply to maverick?
3) that the bug is not in maverick?
4) ???

For the record: I'm on a fully updated maverick, and the bug is still there.

Revision history for this message
Sebastian Morkisch (semox-deactivatedaccount) wrote :

Hello Hantho and others

I just had the same 'exception(?)' when taking the command 'sudo apt-get upgrade'. I'd suppose this is no bug, due it lead not into an error while the upgrade process ran, but it's IMHO a lack, missing feature, whatever.

As Dag Odenhall posted in the opening entry, he added the content of '/usr/share/python/debian_defaults'. It seems, that someone can avoid the issue, by replacing the line with the stuff from here:

# all supported python versions
supported-versions = python2.5, python2.6, python3.0 (or whatever Version)

------------------
DON'T:
So if any of newbies read this post. Please don't set python3.0 as standard! When I tried this, it lead into a bunch of bad errors. It seems to me, that a lot of python programs, packages and installers still aren't made to run this version.

# the default python version
default-version = python3.0
-------------------

But one thing is, that I also don't understand what 'nothing to fix in maverick ' means. Why isn't e.g. my freshly installed python2.7 not in the list of the supported versions from debian_defaults? Unfortunately, I still don't understand the dependencies of the mentioned file. Where can I get more info?

Best regards to all,
Sebastian

Revision history for this message
Savvas Radevic (medigeek) wrote :

@Matthias: Shouldn't python2.7 be added in the maverick file /usr/share/python/debian_defaults ? The package python2.7 is in the official repositories as far as I can see.

$ cat /usr/share/python/debian_defaults
[DEFAULT]
# the default python version
default-version = python2.6

# all supported python versions
supported-versions = python2.6

# formerly supported python versions
old-versions = python2.3, python2.4, python2.5

# unsupported versions, including older versions
unsupported-versions = python2.3, python2.4, python2.5

$ apt-cache policy python2.7 python2.7-minimal python-minimal
python2.7:
  Installed: 2.7-6
  Candidate: 2.7-6
  Version table:
 *** 2.7-6 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status
python-minimal:
  Installed: 2.6.6-2ubuntu2
  Candidate: 2.6.6-2ubuntu2
  Version table:
 *** 2.6.6-2ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ maverick-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.6.6-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
python2.7-minimal:
  Installed: 2.7-6
  Candidate: 2.7-6
  Version table:
 *** 2.7-6 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages

Revision history for this message
Daniel Cordeiro (dcordeiro) wrote :

Is there any drawbacks if one adds python2.7 to the list of supported python in the maverick file /usr/share/python/debian_defaults as @Savvas suggested?

Revision history for this message
Jeroen Hensing (hensing) wrote :

Just got this while upgrading my 10.10 server to 11.04...a lot of times...

Revision history for this message
Cliff Wells (cliff-develix) wrote :

I also notice that when I attempted to install ubuntu-tweak via the .deb, Software Center informs me that it requires Python 2.7, but no package provides that (or some similar message), despite the fact that I can see Python 2.7 via an aptitude search.

After installing Python 2.7 via aptitude, I get the same message as others every time I do a software install.

Ubuntu 10.10, BTW, so I'm also not sure what is meant by "nothing to fix for Maverick".

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.