【发布时间】:2013-08-12 22:33:03
【问题描述】:
我的机器上安装了 thrift(Ubuntu 12.04)。我使用的 thrift 版本是 0.9.0。我尝试为 thrift 接口文件生成 python 文件,如下所示
thrift -gen python example.thrift
我收到以下错误
[WARNING:generation:1] Unable to get a generator for "python".
我是否需要安装任何其他软件包才能使 thrift 能够生成 python 文件。我能够使用 thrift 生成 java 文件。
【问题讨论】:
-
您在安装 thrift 0.9 时是否运行了
./configure --with-python=no或类似的东西?