Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311469 - app-eselect/eselect-python: python-wrapper: Print error message when python is not found
Summary: app-eselect/eselect-python: python-wrapper: Print error message when python i...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 16:45 UTC by Fabian Groffen
Modified: 2016-02-06 09:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2010-03-26 16:45:23 UTC
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.
Comment 1 A. Rohleder 2010-05-28 15:50:03 UTC
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
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-05-28 15:53:15 UTC
(In reply to comment #1)

Bug #321145.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-06 09:18:00 UTC
python-wrapper is no longer used since 20151117-r2.