Aha, looks like you're on 2.6, which is past end of life [1], and no longer
supported by us [2].
$ python2.6
Python 2.6.9 (default, Oct 30 2013, 23:40:04)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re; help(re.sub)
Help on function sub in module re:
sub(pattern, repl, string, count=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the match object and must return
a replacement string to be used.
$ python2.7
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re; help(re.sub)
Help on function sub in module re:
sub(pattern, repl, string, count=0, flags=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the match object and must return
a replacement string to be used.
[1] https://mail.python.org/pipermail/python-dev/2013-September/128287.html
[2]
http://mail-archives.apache.org/mod_mbox/incubator-aurora-dev/201407.mbox/%3CCAFGkSC%3DuUaW_KhQ5yUKw5%3DF3TNFhSiGpv_QDexxwNzQQHiaoCA%40mail.gmail.com%3E
-=Bill
On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <[email protected]> wrote:
> What's your python version? Presumably this would fail on any sha for the
> last few months.
>
> -=Bill
>
> On Wed, Oct 15, 2014 at 10:29 AM, Joe Stein <[email protected]> wrote:
>
>> Hi, I am getting this error trying to build (and run) Aurora on Centos 6.5
>>
>> Traceback (most recent call last):
>> File
>> "src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py", line
>> 712, in <module>
>> 'values': value_entries(struct.values),
>> File
>> "src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py", line
>> 708, in value_entries
>> 'doc': trim_doc_text(v[1])} for v in values])
>> File
>> "src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py", line
>> 529, in trim_doc_text
>> return re.sub('^\s*\*\s*', '', doc, flags=re.MULTILINE) if doc else
>> None
>> TypeError: sub() got an unexpected keyword argument 'flags'
>> :generateSources FAILED
>>
>>
>> I have thrift installed
>>
>> /opt/apache/incubator-aurora$thrift -version
>> Thrift version 0.9.1
>>
>> /*******************************************
>> Joe Stein
>> Founder, Principal Consultant
>> Big Data Open Source Security LLC
>> http://www.stealth.ly
>> Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
>> ********************************************/
>>
>
>