Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#25669 closed defect (fixed)

python27 cannot be selected

Reported by: wsiegrist@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version:
Keywords: python_select Cc: ryandesign (Ryan Carsten Schmidt), glen.henshaw@…
Port: python27

Description (last modified by wsiegrist@…)

After installing python27 and python_select, port select python python27 fails:

# port select python python27 
Selecting 'python27' for 'python' failed: could not create new link "/opt/local/share/man/man1/python.1": target "/opt/local/share/man/man1/python2.7.1" doesn't exist

Change History (12)

comment:1 Changed 14 years ago by wsiegrist@…

Description: modified (diff)

comment:2 Changed 14 years ago by wsiegrist@…

The symlinks in /opt/local/bin do get created, so "fail" is perhaps too strong. I guess it is just the manpage that doesn't get selected.

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

I don't get this error. I successfully switched to python27 from each of these: none python24 python25 python26 python26-apple python27.

comment:4 Changed 14 years ago by wsiegrist@…

I am on a fresh install of 10.6.4 and MacPorts 1.9.1 and did a selfupdate right before installing. I had no other python ports installed. I notice that I have the following symlink:

/opt/local/share/man/man1/python2.7.1 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/man/man1/python.1

but the target is missing:

# ls /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/man/man1/
python2.7.1

... note that the symlink is pointing to python.1 and not python2.7.1

comment:5 Changed 14 years ago by Veence (Vincent)

Python.1 is the expected name for a man 1 file, I think.

comment:6 Changed 14 years ago by jyrkiwahlstedt

Resolution: worksforme
Status: newclosed

I don't get this, so I'll close this, will reopen, if need arises

comment:7 Changed 14 years ago by wsiegrist@…

Resolution: worksforme
Status: closedreopened

Yes, it is still happening.

comment:8 Changed 14 years ago by jyrkiwahlstedt

Ok, now I see this, too, will look into it. It is actually bad, because the following steps are not done...

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

Cc: ryandesign@… added

Did r78352 fix this?

comment:10 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

Yes.

comment:11 Changed 11 years ago by glen.henshaw@…

I'm getting this error again:

ghenshaw$ sudo port select python python27
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
Selecting 'python27' for 'python' failed: could not create new link "/opt/local/bin/python": target "/opt/local/bin/python2.7" doesn't exist
ghenshaw$ ls /opt/local/bin/python2.7
/opt/local/bin/python2.7
ghenshaw$ port installed python*
The following ports are currently installed:

python27 @2.7.3_1 (active)
python_select @0.3_2 (active)

However, selecting other port variants works:

ghenshaw$ sudo port select virtualenv virtualenv27
Selecting 'virtualenv27' for 'virtualenv' succeeded. 'virtualenv27' is now active.

Should this be reopened, or am I confused?

Version 4, edited 11 years ago by glen.henshaw@… (previous) (next) (diff)

comment:12 in reply to:  11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: glen.henshaw@… added

Should this be reopened, or am I confused?

Please file a new ticket. It's a different error message. And the error in this ticket was already resolved almost two years ago.

Also, remember to use WikiFormatting when writing in Trac, and to preview before submitting.

Note: See TracTickets for help on using tickets.