[MacPorts] #42987: python34 @3.4.0_1: activation fails if another python selected
#42987: python34 @3.4.0_1: activation fails if another python selected -----------------------------+-------------------------------- Reporter: md14-macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: python34 -----------------------------+-------------------------------- Installing python34 fails during activation if I have previously selected another python port as the default. {{{ $ sudo port select --set python none Selecting 'none' for 'python' succeeded. 'none' is now active. $ ls -l /opt/local/bin/2to3 ls: /opt/local/bin/2to3: No such file or directory $ sudo port select --set python python27 Selecting 'python27' for 'python' succeeded. 'python27' is now active. $ ls -l /opt/local/bin/2to3 lrwxr-xr-x 1 root admin 23 Mar 22 09:16 /opt/local/bin/2to3 -> /opt/local/bin/2to3-2.7 $ sudo port -vs install python34 ... x ./Applications/MacPorts/Python 3.4/IDLE.app/Contents/Resources/PythonSource.icns x ./Applications/MacPorts/Python 3.4/IDLE.app/Contents/MacOS/IDLE x ./Applications/MacPorts/Python 3.4/IDLE.app/Contents/MacOS/Python Error: org.macports.activate for port python34 returned: Image error: /opt/local/bin/2to3 already exists and does not belong to a registered port. Unable to activate port python34. Use 'port -f activate python34' to force the activation. Please see the log file for port python34 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python34/python34/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port python34 failed }}} The problem may have been introduced in r118099. The problem did not occur with python34 @3.4.0_0. -- Ticket URL: <https://trac.macports.org/ticket/42987> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Changes (by michaelld@…): * cc: jwa@… (removed) * owner: macports-tickets@… => jwa@… Comment: Yes, this issue was introduced in r118099: {{{ % tar jtvf /opt/local/var/macports/software/python34/python34-3.4.0_0+universal.darwin_12.i386-x86_64.tbz2 | grep bin/2to3 lrwxr-xr-x 0 root admin 0 Mar 17 09:13 ./opt/local/bin/2to3-3.4 -> /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3-3.4 -rwxr-xr-x 0 root wheel 150 Mar 17 09:13 ./opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3-3.4 % tar jtvf /opt/local/var/macports/software/python34/python34-3.4.0_1+universal.darwin_12.i386-x86_64.tbz2 | grep bin/2to3 lrwxr-xr-x 0 root admin 0 Mar 22 10:54 ./opt/local/bin/2to3 -> /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3 lrwxr-xr-x 0 root admin 0 Mar 22 10:54 ./opt/local/bin/2to3-3.4 -> /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3-3.4 lrwxr-xr-x 0 root wheel 0 Mar 22 10:54 ./opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3 -> 2to3-3.4 -rwxr-xr-x 0 root wheel 150 Mar 22 10:54 ./opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/2to3-3.4 }}} Looks like a post-destroot to delete those "bin/2to3" symlinks is in order. Or, something like that. -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Comment (by md14-macports@…): Please see #41549 (r113947), which r118099 reverted. -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Comment (by michaelld@…): Still have to rev-bump python34 ... -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Comment (by michaelld@…): Latest svn trunk still didn't work for me just now, even after uninstalling, cleaning, updating other stuff, etc... same issue. -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Comment (by md14-macports@…): There appears to be a reason we need "frameworkinstall maninstall" instead of "altinstall", so I'm attaching a patch that fixes the problem by removing the versionless symlinks in post-destroot, similar to the python27 Portfile. I don't know if this is the best way to fix the problem. -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: python34 | ------------------------------+------------------- Comment (by Peter.Danecek@…): Replying to [comment:6 michaelld@…]:
Latest svn trunk still didn't work for me just now, even after uninstalling, cleaning, updating other stuff, etc... same issue.
I do not see that anything changed which would fix this issue. Apparently r118099 introduces this issue and it is still in place. If you need a quick fix you could execute a `sudo port select python no`, install `python34` and select your preferred python interpreter. It is not very clean, but solves the problem temporary. -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#42987: python34 @3.4.0_1: activation fails if another python selected ------------------------------+-------------------- Reporter: md14-macports@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: python34 | ------------------------------+-------------------- Changes (by jwa@…): * status: new => closed * resolution: => fixed Comment: done in r118159 -- Ticket URL: <https://trac.macports.org/ticket/42987#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts