[MacPorts] #38382: python27 cannot be selected
#38382: python27 cannot be selected ----------------------------+-------------------------------- Reporter: glen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Keywords: select, python | Port: ----------------------------+-------------------------------- port select does not work when selecting python27: {{{ $ 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 $ ls /opt/local/bin/python2.7 /opt/local/bin/python2.7 $ 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: {{{ $ sudo port select virtualenv virtualenv27 Selecting 'virtualenv27' for 'virtualenv' succeeded. 'virtualenv27' is now active. }}} -- Ticket URL: <https://trac.macports.org/ticket/38382> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => raimue@… * keywords: select, python => * port: => python_select Comment: Could you show us debug output please? It might shed some light. {{{ sudo port -d select python python27 }}} -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by glen@…): {{{ $ sudo port -d select python python27 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid Password: DEBUG: Copying /Users/ghenshaw/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [python python27] []... DEBUG: Although no command was specified, more than one argument was specified. Defaulting to the 'set' command... DEBUG: mportselect [set] [python] [python27] Selecting 'python27' for 'python' failed: could not create new link "/opt/local/bin/python": target "/opt/local/bin/python2.7" doesn't exist }}} -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by raimue@…): Does `/opt/local/bin/python2.7` exist? If not, your installation of python27 is incomplete and broken. -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by glen@…): Yes, the target python exists (it also runs). See the original ticket: {{{ $ ls /opt/local/bin/python2.7 /opt/local/bin/python2.7 $ port installed python* The following ports are currently installed: python27 @2.7.3_1 (active) python_select @0.3_2 (active) }}} -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by raimue@…): Sorry, I was not clear on that. python2.7 is supposed to be a symlink itself and I meant if the target of this symlink exists, like this: {{{ $ ls -l /opt/local/bin/python2.7 lrwxr-xr-x 1 root admin 73 Oct 26 17:09 /opt/local/bin/python2.7@ -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 $ ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -rwxr-xr-x 1 root wheel 25608 Oct 26 17:09 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 }}} -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by glen@…): My results: {{{ $ ls -l /opt/local/bin/python2.7 lrwxr-xr-x 1 root admin 6 Nov 20 12:09 /opt/local/bin/python2.7 -> python $ ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -rwxr-xr-x 1 root wheel 9304 Oct 25 13:12 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 }}} -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: | Keywords: Port: python_select | ----------------------------+---------------------- Comment (by glen@…): After an uninstall, clean, and reinstall, I now get: {{{ $ ls -l /opt/local/bin/python2.7 lrwxr-xr-x 1 root admin 73 Nov 17 22:55 /opt/local/bin/python2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 $ ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -rwxr-xr-x 1 root wheel 9308 Nov 17 22:55 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 }}} and, {{{ $ sudo port select python python27 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid Selecting 'python27' for 'python' succeeded. 'python27' is now active. }}} Thanks for the help. Dunno why the port was messed up originally. -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38382: python_select: python27 cannot be selected ----------------------------+---------------------- Reporter: glen@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.1.3 Resolution: invalid | Keywords: Port: python_select | ----------------------------+---------------------- Changes (by raimue@…): * status: new => closed * resolution: => invalid Comment: I am glad this could be resolved by a reinstall of python27. Thanks for the confirmation that this was the issue. -- Ticket URL: <https://trac.macports.org/ticket/38382#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts