I just hit this piece of code while upgrading python on an old system: # Ensure that /usr/bin/python and /usr/bin/python-config are valid. if [[ "$(readlink /usr/bin/python)" != "python-wrapper" ]]; then die "'/usr/bin/python' isn't valid symlink" fi Please, could you make the error message tell people what to do? I tracked it down and fixed with "eselect python set 1" in less than a minute, but for an average user this is going to be just frustrating.
I have added the following eerror messages: '/usr/bin/python' is not valid symlink. Use `eselect python set ${python_interpreter}` to fix this problem.
(In reply to comment #1) > I have added the following eerror messages: > '/usr/bin/python' is not valid symlink. > Use `eselect python set ${python_interpreter}` to fix this problem. > For non-programmers, what does one use instead of the literals "python_interpreter" (which doesn't work) in the command line above? Thanx.
> For non-programmers, what does one use instead of the literals > "python_interpreter" (which doesn't work) in the command line above? > Thanx. > Ouch, it was just: my_box # eselect python list Available Python interpreters: [1] python2.6 * my_box # eselect python set 1 my_box # :-)
(In reply to comment #2) > (In reply to comment #1) > > I have added the following eerror messages: > > '/usr/bin/python' is not valid symlink. > > Use `eselect python set ${python_interpreter}` to fix this problem. > > For non-programmers, what does one use instead of the literals > "python_interpreter" (which doesn't work) in the command line above? ${python_interpreter} means a variable, so you should substitute it with some value. Example: eselect python set python3.1