You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aurora.apache.org by Joe Stein <jo...@stealth.ly> on 2014/10/15 19:29:29 UTC
build errors
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>
********************************************/
Re: build errors
Posted by Brian Wickman <wi...@twopensource.com>.
r/26764
On Wed, Oct 15, 2014 at 11:24 AM, Bill Farner <wf...@apache.org> wrote:
> Brian, Kevin - can one of you be the change you would like to see in the
> world? :-)
>
> -=Bill
>
> On Wed, Oct 15, 2014 at 11:21 AM, Joe Stein <jo...@stealth.ly> wrote:
>
> > python2.7 was the trick, building now :) thanks!
> >
> > /*******************************************
> > Joe Stein
> > Founder, Principal Consultant
> > Big Data Open Source Security LLC
> > http://www.stealth.ly
> > Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> > ********************************************/
> >
> > On Wed, Oct 15, 2014 at 2:19 PM, Kevin Sweeney <ke...@apache.org>
> wrote:
> >
> > > +1 to that - python2.7: command not found is a much better error
> message
> > > here.
> > >
> > > On Wed, Oct 15, 2014 at 11:16 AM, Brian Wickman <
> > wickman@twopensource.com>
> > > wrote:
> > >
> > > > You should probably update thrift_wrapper_codegen.py to
> #!/usr/bin/env
> > > > python2.7
> > > >
> > > > The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is
> > the
> > > > default for CentOS 6.
> > > >
> > > > On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org>
> > > 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 <jo...@stealth.ly>
> > > > 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
> > >
> > > > > > ********************************************/
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: build errors
Posted by John Sirois <jo...@gmail.com>.
On Wed, Oct 15, 2014 at 12:24 PM, Bill Farner <wf...@apache.org> wrote:
> Brian, Kevin - can one of you be the change you would like to see in the
> world? :-)
>
I think you drilled in the 'we' lesson - Wickman boldly used 'you'!
Its probably like spam - you won't win but you have to keep fighting.
Here's to you fighting the fight.
>
> -=Bill
>
> On Wed, Oct 15, 2014 at 11:21 AM, Joe Stein <jo...@stealth.ly> wrote:
>
> > python2.7 was the trick, building now :) thanks!
> >
> > /*******************************************
> > Joe Stein
> > Founder, Principal Consultant
> > Big Data Open Source Security LLC
> > http://www.stealth.ly
> > Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> > ********************************************/
> >
> > On Wed, Oct 15, 2014 at 2:19 PM, Kevin Sweeney <ke...@apache.org>
> wrote:
> >
> > > +1 to that - python2.7: command not found is a much better error
> message
> > > here.
> > >
> > > On Wed, Oct 15, 2014 at 11:16 AM, Brian Wickman <
> > wickman@twopensource.com>
> > > wrote:
> > >
> > > > You should probably update thrift_wrapper_codegen.py to
> #!/usr/bin/env
> > > > python2.7
> > > >
> > > > The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is
> > the
> > > > default for CentOS 6.
> > > >
> > > > On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org>
> > > 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 <jo...@stealth.ly>
> > > > 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
> > >
> > > > > > ********************************************/
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: build errors
Posted by Bill Farner <wf...@apache.org>.
Brian, Kevin - can one of you be the change you would like to see in the
world? :-)
-=Bill
On Wed, Oct 15, 2014 at 11:21 AM, Joe Stein <jo...@stealth.ly> wrote:
> python2.7 was the trick, building now :) thanks!
>
> /*******************************************
> Joe Stein
> Founder, Principal Consultant
> Big Data Open Source Security LLC
> http://www.stealth.ly
> Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> ********************************************/
>
> On Wed, Oct 15, 2014 at 2:19 PM, Kevin Sweeney <ke...@apache.org> wrote:
>
> > +1 to that - python2.7: command not found is a much better error message
> > here.
> >
> > On Wed, Oct 15, 2014 at 11:16 AM, Brian Wickman <
> wickman@twopensource.com>
> > wrote:
> >
> > > You should probably update thrift_wrapper_codegen.py to #!/usr/bin/env
> > > python2.7
> > >
> > > The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is
> the
> > > default for CentOS 6.
> > >
> > > On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org>
> > 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 <jo...@stealth.ly>
> > > 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
> >
> > > > > ********************************************/
> > > > >
> > > >
> > >
> >
>
Re: build errors
Posted by Joe Stein <jo...@stealth.ly>.
python2.7 was the trick, building now :) thanks!
/*******************************************
Joe Stein
Founder, Principal Consultant
Big Data Open Source Security LLC
http://www.stealth.ly
Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/
On Wed, Oct 15, 2014 at 2:19 PM, Kevin Sweeney <ke...@apache.org> wrote:
> +1 to that - python2.7: command not found is a much better error message
> here.
>
> On Wed, Oct 15, 2014 at 11:16 AM, Brian Wickman <wi...@twopensource.com>
> wrote:
>
> > You should probably update thrift_wrapper_codegen.py to #!/usr/bin/env
> > python2.7
> >
> > The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is the
> > default for CentOS 6.
> >
> > On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org>
> 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 <jo...@stealth.ly>
> > 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>
> > > > ********************************************/
> > > >
> > >
> >
>
Re: build errors
Posted by Kevin Sweeney <ke...@apache.org>.
+1 to that - python2.7: command not found is a much better error message
here.
On Wed, Oct 15, 2014 at 11:16 AM, Brian Wickman <wi...@twopensource.com>
wrote:
> You should probably update thrift_wrapper_codegen.py to #!/usr/bin/env
> python2.7
>
> The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is the
> default for CentOS 6.
>
> On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org> 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 <jo...@stealth.ly>
> 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>
> > > ********************************************/
> > >
> >
>
Re: build errors
Posted by Brian Wickman <wi...@twopensource.com>.
You should probably update thrift_wrapper_codegen.py to #!/usr/bin/env
python2.7
The 'flags=' keyword argument was added in 2.7, and I believe 2.6 is the
default for CentOS 6.
On Wed, Oct 15, 2014 at 11:09 AM, Bill Farner <wf...@apache.org> 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 <jo...@stealth.ly> 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>
> > ********************************************/
> >
>
Re: build errors
Posted by Bill Farner <wf...@apache.org>.
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 <wf...@apache.org> 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 <jo...@stealth.ly> 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>
>> ********************************************/
>>
>
>
Re: build errors
Posted by Bill Farner <wf...@apache.org>.
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 <jo...@stealth.ly> 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>
> ********************************************/
>