Error setting python34 to python

Ned Deily nad at acm.org
Thu Mar 6 14:27:27 PST 2014


In article 
<CA+bF-zy39RmuePL+MXVSghFekd3-MVGynBtEi4c3OuoocH7emg at mail.gmail.com>,
 Thad Humphries <thad.humphries at gmail.com> wrote:

> Ticket #41146 (https://trac.macports.org/ticket/41146) says this is fixed,
> that that has not been my experience today. As you can see from the
> terminal clips below, I cannot set python34 to python. I am running MacOS
> 10.9.2.
> 
> 
> $ sudo port install python34
> --->  Computing dependencies for python34
> --->  Fetching archive for python34
> --->  Attempting to fetch python34-3.4.0rc2_0.darwin_13.x86_64.tbz2 from
> http://packages.macports.org/python34
> --->  Attempting to fetch python34-3.4.0rc2_0.darwin_13.x86_64.tbz2.rmd160
> from http://packages.macports.org/python34
> --->  Installing python34 @3.4.0rc2_0
> --->  Activating python34 @3.4.0rc2_0
> 
> To make python 3.4 the default (i.e. the version you get when you run
> 'python'),
> please run:
> 
> sudo port select --set python python34
> 
> --->  Cleaning python34
> --->  Updating database of binaries: 100.0%
> --->  Scanning binaries for linking errors: 100.0%
> --->  No broken files found.
> 
> $ sudo port select --set python python34
> Selecting 'python34' for 'python' failed: could not create new link
> "/opt/local/bin/pythonw": target "/opt/local/bin/pythonw3.4" doesn't exist
> 
> $ port -v installed python34
> The following ports are currently installed:
>   python34 @3.4.0rc2_0 (active) platform='darwin 13' archs='x86_64'

The vestigial "pythonw" symlink synonyms for "python" have been removed 
upstream in python3.4.  It looks like "port select" needs to be changed 
to accommodate that.

You should also be careful about setting "python" to a Python 3 variant.  
That's not recommended as many Python packages still assume that 
"python" refers to a Python 2 variant.  "port select" should provide a 
"python3" name as well and, ideally, for future compatibility, a 
"python2" one as well so that someday "python" can mean "python3", all 
as recommended in Python PEP 394.

http://legacy.python.org/dev/peps/pep-0394/

-- 
 Ned Deily,
 nad at acm.org



More information about the macports-users mailing list