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 <[email protected]> wrote:

> On Wed, 4 Oct 2017 at 7:56 pm, Jens Geyer <[email protected]> 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: [email protected]
>> Betreff: Re: Help with generating Python 3 code
>>
>> On Wed, Oct 4, 2017 at 5:56 PM Jens Geyer <[email protected]> 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: [email protected]
>> > Betreff: Re: Help with generating Python 3 code
>> >
>> > On Wed, Oct 4, 2017 at 5:32 PM Amit Saha <[email protected]> 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.
>> > >
>> > >
>> >
>>
>

Reply via email to