Wes added the comment: Marc,
Thanks for your help. What I did was just copied the _sys_version_parser from the standard python platform.py into the anaconda version of platform.py and it fixed the issue. So it looks like Anaconda made a change to your regular expression. Thanks for getting on the issue so quick and staying with it, though. On Wed, Dec 18, 2013 at 6:14 PM, Marc-Andre Lemburg <rep...@bugs.python.org>wrote: > > Marc-Andre Lemburg added the comment: > > On 19.12.2013 00:52, Wes wrote: > > > > Marc, > > > > Here was the initial output: > > > >>>> platform.__file__ > > '/Users/wesmadrigal/anaconda/lib/python2.7/platform.pyc' > >>>> import sys > >>>> sys.version > > '2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Nov 11 2013, 10:49:09) \n[GCC > > 4.0.1 (Apple Inc. build 5493)]' > > The part '|Anaconda 1.8.0 (x86_64)|' in that string is not standard > Python conform and as a result, the platform.py parser fails. > > You'll have to open a ticket with the Anaconda vendor to get this > fixed. > > > Here is what I had when I reverted back to the standard $PATH that comes > > stock in Mac OSX Mountain Lion on this new Macbook Pro: > > > >>>> platform.__file__ > > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.pyc' > >>>> import sys > >>>> sys.version > > '2.7.5 (default, Sep 12 2013, 21:33:34) \n[GCC 4.2.1 Compatible Apple > LLVM > > 5.0 (clang-500.0.68)]' > > This should parse correctly with the stock platform.py parser. > > The only explanation I have is that the platform.py installed > on your machine is not the original one that comes with the > Python 2.7.5 we distribute from python.org. > > I don't have a Mac OSX notebook available to check, so can't > really help. > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue20019> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20019> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com