New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25669 (closed defect: fixed)

Opened 4 years ago

Last modified 13 months ago

python27 cannot be selected

Reported by: wsiegrist@… Owned by: jwa@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: python_select Cc: ryandesign@…, glen.henshaw@…
Port: python27

Description (last modified by wsiegrist@…) (diff)

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

comment:1 Changed 4 years ago by wsiegrist@…

  • Description modified (diff)

comment:2 Changed 4 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 4 years ago by snc@…

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 4 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 4 years ago by vince@…

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

comment:6 Changed 4 years ago by jwa@…

  • Status changed from new to closed
  • Resolution set to worksforme

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

comment:7 Changed 4 years ago by wsiegrist@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

Yes, it is still happening.

comment:8 Changed 4 years ago by jwa@…

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

comment:9 Changed 3 years ago by ryandesign@…

  • Cc ryandesign@… added

Did r78352 fix this?

comment:10 Changed 3 years ago by jmr@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Yes.

comment:11 follow-up: ↓ 12 Changed 13 months 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?

Last edited 13 months ago by ryandesign@… (previous) (diff)

comment:12 in reply to: ↑ 11 Changed 13 months ago by ryandesign@…

  • 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.