Opened 7 years ago

Closed 5 years ago

#29531 closed defect (wontfix)

_select ports no longer provide _select binary

Reported by: hansimglueck@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: raimue (Rainer Müller), mww@…, ryandesign (Ryan Schmidt), blair (Blair Zajac)
Port: gcc_select ipython_select maven_select postgresql_select python_select

Description

Hi MacPorties,

I'm wondering about a strange bug. I have installed scipy, matplotlib and other scientific stuff. My commands were:

sudo port install py26-wxpython py26-numpy py26-matplotlib
sudo port install py26-scipy py26-ipyhton

yea, right to this point everything works fine and after a few hours its done...

I started ipython and everything works fine too.

But in standard python i did not work ... i figured out that i use the apple python version:

hans: hans$ python
Python 2.6.1 (r261:67515, Aug 2 2010, 20:10:18)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

so i started:

hans: hans§ python2.6
Python 2.6.6 (r266:84292, May 15 2011, 15:57:09)
[GCC 4.2.1 (Apple Inc. build 5666)] on darwin

and yea it works fine.... ok so i checked my python_select installation from macports:

hans: hans§ port installed | grep python_select
ipython_select @0.1.0 (active)
python_select @0.3_1 (active)

but when i type:

hans: hans$ sudo python_select python2.6
sudo: python_select: command not found

So port says python_select is fine but the command does not work? any hints? i already tried selfupdate, upgrade outdated and clean --all python_select.... greets hans

Change History (13)

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

"python_select" (and other standalone *_select scripts) is gone. Use "sudo port select python python26" etc.

comment:2 Changed 7 years ago by hansimglueck@…

great that works fine... thanks

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Port: python_select added
Resolution: invalid
Status: newclosed

comment:4 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: raimue@… added

Has duplicate #29616.

comment:5 Changed 7 years ago by ryandesign (Ryan Schmidt)

Has duplicate #29720 (about gcc_select, but it's the same issue).

comment:6 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: mww@… ryandesign@… added
Port: gcc_select ipython_select postgresql_select added
Resolution: invalid
Status: closedreopened
Summary: python_select: command not found_select ports no longer provide _select binary

It was also reported on the mailing list, where it was suggested that a "_select" binary should have been left behind, with the sole purpose of printing an error message advising the user how to use "port select". This seems like a great idea, and would avoid these many tickets being filed and users being confused.

comment:7 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: blair@… added
Port: maven_select added

comment:8 Changed 7 years ago by ryandesign (Ryan Schmidt)

comment:9 Changed 7 years ago by ryandesign (Ryan Schmidt)

Has duplicate #30063.

comment:10 Changed 6 years ago by ryandesign (Ryan Schmidt)

Has duplicate #32389.

comment:11 Changed 6 years ago by beany_kelly@…

I'm using a MBP with OS X 10.6.8 and macports 2.0.4

I'm having the problem above when trying to select an earlier installation of gcc:

(1) gcc_select is installed on my system;

(2) gcc_select is *not* an executable;

(3) nevertheless, I *can't* uninstall gcc_select, because my gcc4* installations depend on it;

(4) the "approved" way of selecting -- "sudo port select gcc gcc45" -- doesn't work either:

Selecting 'gcc45' for 'gcc' failed: The specified version 'gcc45' is not valid.

So how do I now select gcc45 without uninstalling all my other gcc versions?

comment:12 in reply to:  11 Changed 6 years ago by raimue (Rainer Müller)

Replying to beany_kelly@…:

(4) the "approved" way of selecting -- "sudo port select gcc gcc45" -- doesn't work either:

Selecting 'gcc45' for 'gcc' failed: The specified version 'gcc45' is not valid.

You should check port select --list gcc first. You want to run port select gcc mp-gcc45.

comment:13 Changed 5 years ago by raimue (Rainer Müller)

Resolution: wontfix
Status: reopenedclosed

This has been pending for a long time. Closing as the *_select scripts are not coming back.

Note: See TracTickets for help on using tickets.