You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Amit Saha <am...@gmail.com> on 2017/10/04 06:32:25 UTC
Help with generating Python 3 code
Hi all,
I am attempting to generate Python3 code as follows, but haven't been able
to. This is a dump of the relevant information:
I have a git clone of the source and then did:
$ ./configure --with-java=false --with-cpp=false --with-lua=false
--with-ruby=false --with-dart=false --with-D=false
...
Building Python Library ...... : yes
Building Py3 Library ......... : yes
...
Python Library:
Using Python .............. : /usr/bin/python
Using Python version ...... : Python 2.7.12
Using Python3 ............. : /usr/bin/python3
Using Python3 version ..... : Python 3.5.2
Using trial ............... : /usr/bin/trial
...
$ make
$ make install
$ thrift -strict -r --gen py:py3 tutorial.thrift
[FAILURE:generation:1] Error: unknown option py:py3
Would appreciate any help.
Best Wishes,
Amit.
Re: Help with generating Python 3 code
Posted by Amit Saha <am...@gmail.com>.
Just for anyone finding this post, it turns out the python generator is
generating Python 2/3 code from what it seems so far. No need to specify
any additional option.
On Wed, Oct 4, 2017 at 7:59 PM Amit Saha <am...@gmail.com> wrote:
> On Wed, 4 Oct 2017 at 7:56 pm, Jens Geyer <je...@hotmail.com> wrote:
>
>> And what are your conclusions?
>
>
> I wrote my conclusion in my original + followip post. That i am not able
> to get it working.
>
>
>
>>
>> Sent from mobile device, please ignore spelling mistakes.
>> ________________________________
>> Von: Amit Saha
>> Gesendet: 04.10.2017 08:58
>> An: user@thrift.apache.org
>> Betreff: Re: Help with generating Python 3 code
>>
>> On Wed, Oct 4, 2017 at 5:56 PM Jens Geyer <je...@hotmail.com> wrote:
>>
>> > There is no such option, really. Try
>> >
>> > thrift --help
>> >
>>
>> I did look at it, but couldn't see any mention of python3 or py3. Referred
>> to https://issues.apache.org/jira/browse/THRIFT-1857 as well.
>>
>> >
>> >
>> >
>> > Sent from mobile device, please ignore spelling mistakes.
>> > ________________________________
>> > Von: Amit Saha
>> > Gesendet: 04.10.2017 08:46
>> > An: user@thrift.apache.org
>> > Betreff: Re: Help with generating Python 3 code
>> >
>> > On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
>> >
>> > > Hi all,
>> > >
>> > > I am attempting to generate Python3 code as follows, but haven't been
>> > able
>> > > to. This is a dump of the relevant information:
>> > >
>> > > I have a git clone of the source and then did:
>> > >
>> > > $ ./configure --with-java=false --with-cpp=false --with-lua=false
>> > > --with-ruby=false --with-dart=false --with-D=false
>> > > ...
>> > > Building Python Library ...... : yes
>> > > Building Py3 Library ......... : yes
>> > > ...
>> > > Python Library:
>> > > Using Python .............. : /usr/bin/python
>> > > Using Python version ...... : Python 2.7.12
>> > > Using Python3 ............. : /usr/bin/python3
>> > > Using Python3 version ..... : Python 3.5.2
>> > > Using trial ............... : /usr/bin/trial
>> > >
>> > > ...
>> > > $ make
>> > > $ make install
>> > >
>> > > $ thrift -strict -r --gen py:py3 tutorial.thrift
>> > > [FAILURE:generation:1] Error: unknown option py:py3
>> > >
>> >
>> > Sorry, that should have been `py:python3` (as per
>> > https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
>> > result.
>> >
>> >
>> >
>> > > Amit.
>> > >
>> > >
>> >
>>
>
Re: Help with generating Python 3 code
Posted by Amit Saha <am...@gmail.com>.
On Wed, 4 Oct 2017 at 7:56 pm, Jens Geyer <je...@hotmail.com> wrote:
> And what are your conclusions?
I wrote my conclusion in my original + followip post. That i am not able to
get it working.
>
> Sent from mobile device, please ignore spelling mistakes.
> ________________________________
> Von: Amit Saha
> Gesendet: 04.10.2017 08:58
> An: user@thrift.apache.org
> Betreff: Re: Help with generating Python 3 code
>
> On Wed, Oct 4, 2017 at 5:56 PM Jens Geyer <je...@hotmail.com> wrote:
>
> > There is no such option, really. Try
> >
> > thrift --help
> >
>
> I did look at it, but couldn't see any mention of python3 or py3. Referred
> to https://issues.apache.org/jira/browse/THRIFT-1857 as well.
>
> >
> >
> >
> > Sent from mobile device, please ignore spelling mistakes.
> > ________________________________
> > Von: Amit Saha
> > Gesendet: 04.10.2017 08:46
> > An: user@thrift.apache.org
> > Betreff: Re: Help with generating Python 3 code
> >
> > On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
> >
> > > Hi all,
> > >
> > > I am attempting to generate Python3 code as follows, but haven't been
> > able
> > > to. This is a dump of the relevant information:
> > >
> > > I have a git clone of the source and then did:
> > >
> > > $ ./configure --with-java=false --with-cpp=false --with-lua=false
> > > --with-ruby=false --with-dart=false --with-D=false
> > > ...
> > > Building Python Library ...... : yes
> > > Building Py3 Library ......... : yes
> > > ...
> > > Python Library:
> > > Using Python .............. : /usr/bin/python
> > > Using Python version ...... : Python 2.7.12
> > > Using Python3 ............. : /usr/bin/python3
> > > Using Python3 version ..... : Python 3.5.2
> > > Using trial ............... : /usr/bin/trial
> > >
> > > ...
> > > $ make
> > > $ make install
> > >
> > > $ thrift -strict -r --gen py:py3 tutorial.thrift
> > > [FAILURE:generation:1] Error: unknown option py:py3
> > >
> >
> > Sorry, that should have been `py:python3` (as per
> > https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
> > result.
> >
> >
> >
> > > Amit.
> > >
> > >
> >
>
AW: Help with generating Python 3 code
Posted by Jens Geyer <je...@hotmail.com>.
And what are your conclusions?
Sent from mobile device, please ignore spelling mistakes.
________________________________
Von: Amit Saha
Gesendet: 04.10.2017 08:58
An: user@thrift.apache.org
Betreff: Re: Help with generating Python 3 code
On Wed, Oct 4, 2017 at 5:56 PM Jens Geyer <je...@hotmail.com> wrote:
> There is no such option, really. Try
>
> thrift --help
>
I did look at it, but couldn't see any mention of python3 or py3. Referred
to https://issues.apache.org/jira/browse/THRIFT-1857 as well.
>
>
>
> Sent from mobile device, please ignore spelling mistakes.
> ________________________________
> Von: Amit Saha
> Gesendet: 04.10.2017 08:46
> An: user@thrift.apache.org
> Betreff: Re: Help with generating Python 3 code
>
> On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
>
> > Hi all,
> >
> > I am attempting to generate Python3 code as follows, but haven't been
> able
> > to. This is a dump of the relevant information:
> >
> > I have a git clone of the source and then did:
> >
> > $ ./configure --with-java=false --with-cpp=false --with-lua=false
> > --with-ruby=false --with-dart=false --with-D=false
> > ...
> > Building Python Library ...... : yes
> > Building Py3 Library ......... : yes
> > ...
> > Python Library:
> > Using Python .............. : /usr/bin/python
> > Using Python version ...... : Python 2.7.12
> > Using Python3 ............. : /usr/bin/python3
> > Using Python3 version ..... : Python 3.5.2
> > Using trial ............... : /usr/bin/trial
> >
> > ...
> > $ make
> > $ make install
> >
> > $ thrift -strict -r --gen py:py3 tutorial.thrift
> > [FAILURE:generation:1] Error: unknown option py:py3
> >
>
> Sorry, that should have been `py:python3` (as per
> https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
> result.
>
>
>
> > Amit.
> >
> >
>
Re: Help with generating Python 3 code
Posted by Amit Saha <am...@gmail.com>.
On Wed, Oct 4, 2017 at 5:56 PM Jens Geyer <je...@hotmail.com> wrote:
> There is no such option, really. Try
>
> thrift --help
>
I did look at it, but couldn't see any mention of python3 or py3. Referred
to https://issues.apache.org/jira/browse/THRIFT-1857 as well.
>
>
>
> Sent from mobile device, please ignore spelling mistakes.
> ________________________________
> Von: Amit Saha
> Gesendet: 04.10.2017 08:46
> An: user@thrift.apache.org
> Betreff: Re: Help with generating Python 3 code
>
> On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
>
> > Hi all,
> >
> > I am attempting to generate Python3 code as follows, but haven't been
> able
> > to. This is a dump of the relevant information:
> >
> > I have a git clone of the source and then did:
> >
> > $ ./configure --with-java=false --with-cpp=false --with-lua=false
> > --with-ruby=false --with-dart=false --with-D=false
> > ...
> > Building Python Library ...... : yes
> > Building Py3 Library ......... : yes
> > ...
> > Python Library:
> > Using Python .............. : /usr/bin/python
> > Using Python version ...... : Python 2.7.12
> > Using Python3 ............. : /usr/bin/python3
> > Using Python3 version ..... : Python 3.5.2
> > Using trial ............... : /usr/bin/trial
> >
> > ...
> > $ make
> > $ make install
> >
> > $ thrift -strict -r --gen py:py3 tutorial.thrift
> > [FAILURE:generation:1] Error: unknown option py:py3
> >
>
> Sorry, that should have been `py:python3` (as per
> https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
> result.
>
>
>
> > Amit.
> >
> >
>
AW: Help with generating Python 3 code
Posted by Jens Geyer <je...@hotmail.com>.
There is no such option, really. Try
thrift --help
Sent from mobile device, please ignore spelling mistakes.
________________________________
Von: Amit Saha
Gesendet: 04.10.2017 08:46
An: user@thrift.apache.org
Betreff: Re: Help with generating Python 3 code
On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
> Hi all,
>
> I am attempting to generate Python3 code as follows, but haven't been able
> to. This is a dump of the relevant information:
>
> I have a git clone of the source and then did:
>
> $ ./configure --with-java=false --with-cpp=false --with-lua=false
> --with-ruby=false --with-dart=false --with-D=false
> ...
> Building Python Library ...... : yes
> Building Py3 Library ......... : yes
> ...
> Python Library:
> Using Python .............. : /usr/bin/python
> Using Python version ...... : Python 2.7.12
> Using Python3 ............. : /usr/bin/python3
> Using Python3 version ..... : Python 3.5.2
> Using trial ............... : /usr/bin/trial
>
> ...
> $ make
> $ make install
>
> $ thrift -strict -r --gen py:py3 tutorial.thrift
> [FAILURE:generation:1] Error: unknown option py:py3
>
Sorry, that should have been `py:python3` (as per
https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
result.
> Amit.
>
>
Re: Help with generating Python 3 code
Posted by Amit Saha <am...@gmail.com>.
On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <am...@gmail.com> wrote:
> Hi all,
>
> I am attempting to generate Python3 code as follows, but haven't been able
> to. This is a dump of the relevant information:
>
> I have a git clone of the source and then did:
>
> $ ./configure --with-java=false --with-cpp=false --with-lua=false
> --with-ruby=false --with-dart=false --with-D=false
> ...
> Building Python Library ...... : yes
> Building Py3 Library ......... : yes
> ...
> Python Library:
> Using Python .............. : /usr/bin/python
> Using Python version ...... : Python 2.7.12
> Using Python3 ............. : /usr/bin/python3
> Using Python3 version ..... : Python 3.5.2
> Using trial ............... : /usr/bin/trial
>
> ...
> $ make
> $ make install
>
> $ thrift -strict -r --gen py:py3 tutorial.thrift
> [FAILURE:generation:1] Error: unknown option py:py3
>
Sorry, that should have been `py:python3` (as per
https://issues.apache.org/jira/browse/THRIFT-1857) but i get the same
result.
> Amit.
>
>