Fix for ValueError: the symlink /usr/bin/python does not point to the python default version

Sponsored Link
When i try to install some program which is developed in python i am getting teh following error in Gutsy

ValueError: the symlink /usr/bin/python does not point to the python default version. It must be reset to point to python2.5

This is because by default Gutsy Gibbon will come with python version 2.5 so we need to downgrade this version to 2.4

Here’s how to downgrade your default version in gutsy to Python 2.4 without those errors.

Caution :- This is only work around and after changing this other programs may not work

If you haven’t already, symlink /usr/bin/python to /usr/bin/python2.4

sudo ln -s /usr/bin/python2.4 /usr/bin/python

Edit your /usr/share/python/debian_defaults/ file

sudo vi /usr/share/python/debian_defaults

The initial few lines should read

[DEFAULT]
# the default python version
default-version = python2.5

Change the above line to the following

default-version = python2.4

Save and exit the file

Then try to install your application again it should work without any problem

Sponsored Link

You may also like...

1 Response

  1. Gregory Despain says:

    This is great! Thanks for your article. I am a newbie at python and this will help a lot.

Leave a Reply

Your email address will not be published. Required fields are marked *