[issue20019] platform.py line _sys_version function
Wes
report at bugs.python.org
Thu Dec 19 00:08:47 CET 2013
New submission from Wes:
Marc-Andre,
I'm on a Macbook pro OSX Mountain Lion
I've been automating virtual environment builds locally and remotely, but it seems that when my "pip install -r requirements.txt" tries to run and download.py in pip/ runs it invokes "platform.py". I'm getting a user-agent issue from the _sys_version function. Here is the error:
File "/Users/me/anaconda/lib/python2.7/platform.py", line 1500, in python_implementation
return _sys_version()[0]
File "/Users/me/anaconda/lib/python2.7/platform.py", line 1464, in _sys_version
repr(sys_version))
ValueError: failed to parse CPython 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)]'
I've found the following stack that also references this error:
http://stackoverflow.com/questions/19105255/praw-failed-to-parse-cpython-sys-version-when-creating-reddit-object
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 206560
nosy: lemburg, wesmadrigal
priority: normal
severity: normal
status: open
title: platform.py line _sys_version function
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20019>
_______________________________________
More information about the Python-bugs-list
mailing list