Public bug reported: Binary package hint: python-minimal
Version: Ubuntu 11.04 Ubuntu 11.04 comes with Python 2.7 as the default. Because of a tool requiring Python 2.6, I installed Python 2.6 side-by-side Python 2.7 and made it the default :) Now, Ubuntu Software Center does not work, because it requires Python 2.7. So, I used update-alternatives and added "python" and its derivatives for switching between the two versions. Its terrible... Now the real problem, the /usr/share/python/pyversions.py as well as /usr/share/pycentral-data/pyversions.py, reads the link pointing to /usr/bin/python to get the default python version. But after adding python as update-alternative option, this link does not point to /usr/bin/python2.7 or /usr/bin/python2.6. Instead points to /etc/alternatives/python which then points to the actual python executable. I suppose that reading the link is not the correct way to determine the python version. Instead, the actual python command should be executed to get the version (that code is actually present in pyversions.py as an exception handler). ** Affects: python-defaults (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/782441 Title: pyversions unable to detect python version if "python" is added as a update-alternative option -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs