【问题标题】:thrift : Unable to get a generator for "python"thrift:无法获得“python”的生成器
【发布时间】: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 或类似的东西?

标签: java python thrift


【解决方案1】:

尝试用“py”替换“python”:

thrift -gen py example.thrift

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-30
    • 1970-01-01
    • 1970-01-01
    • 2014-02-13
    • 2015-12-29
    • 2021-12-05
    • 1970-01-01
    • 2018-01-14
    相关资源
    最近更新 更多