Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

thrift : Unable to get a generator for "python"

I have thrift installed on my machine (Ubuntu 12.04).The version of thrift that I am using is 0.9.0.I have tried to generate python file for a thrift interface file as follows

thrift -gen python example.thrift

I get the following error

[WARNING:generation:1] Unable to get a generator for "python".

Do I need to install any additional packages in order for thrift to be able to generate python files.I am able to generate java file using thrift.

like image 261
liv2hak Avatar asked Jun 21 '26 18:06

liv2hak


1 Answers

Try replacing the "python" with "py":

thrift -gen py example.thrift
like image 150
Chris Avatar answered Jun 23 '26 07:06

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!