situation: - emerged new python (2.6) - portage died right after unmerging the existing version - system left in a state without python-2.6 what happens: % python % echo $? 127 % Ok, it could be a lot more helpful if it would shout at stderr here that no python is found. % eselect python list Available Python interpreters: [1] python2.4 [2] python2.5 nothing is selected any more of course, but the wrapper still is there and in the first place it hides that there is a major problem.
Got the same problem on a old installation updated today: Looks like python-2.6.4-r1 ebuild does not report SLOT='2.6' correctly... # emerge -1 python:2.6 Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-lang/python-2.6.4-r1 * python-gentoo-patches-2.6.4-r1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Python-2.6.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * "bsddb" module is out-of-date and no longer maintained inside dev-lang/python. It has * been additionally removed in Python 3. You should use external, still maintained "bsddb3" * module provided by dev-python/bsddb3 which supports both Python 2 and Python 3. >>> Unpacking source... >>> Unpacking python-gentoo-patches-2.6.4-r1.tar.bz2 to /var/tmp/portage/dev-lang/python-2.6.4-r1/work >>> Unpacking Python-2.6.4.tar.bz2 to /var/tmp/portage/dev-lang/python-2.6.4-r1/work >>> Source unpacked in /var/tmp/portage/dev-lang/python-2.6.4-r1/work >>> Preparing source in /var/tmp/portage/dev-lang/python-2.6.4-r1/work ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lang/python-2.6.4-r1/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lang/python-2.6.4-r1/work ... >>> Source compiled. >>> Test phase [not enabled]: dev-lang/python-2.6.4-r1 >>> Install python-2.6.4-r1 into /var/tmp/portage/dev-lang/python-2.6.4-r1/image/ category dev-lang >>> Completed installing python-2.6.4-r1 into /var/tmp/portage/dev-lang/python-2.6.4-r1/image/ >>> Installing (1 of 1) dev-lang/python-2.6.4-r1 * QA Notice: Expected SLOT='2.6', got '' * Messages for package dev-lang/python-2.6.4-r1: * "bsddb" module is out-of-date and no longer maintained inside dev-lang/python. It has * been additionally removed in Python 3. You should use external, still maintained "bsddb3" * module provided by dev-python/bsddb3 which supports both Python 2 and Python 3. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. # eselect python set python2.6 !!! Error: Invalid target python2.6 exiting
(In reply to comment #1) Bug #321145.
python-wrapper is no longer used since 20151117-r2.