Fails to build with protobuf 2.6.0

t/test-full.proto: "foo.VALUE_B" uses the same enum value as "foo.VALUE_A". If this is intended, set 'option allow_alias = true;' to the enum definition.
t/test-full.proto: "foo.VALUE_C" uses the same enum value as "foo.VALUE_A". If this is intended, set 'option allow_alias = true;' to the enum definition.
t/test-full.proto: "foo.VALUE_E" uses the same enum value as "foo.VALUE_D". If this is intended, set 'option allow_alias = true;' to the enum definition.
t/test-full.proto: "foo.VALUE_AA" uses the same enum value as "foo.VALUE_F". If this is intended, set 'option allow_alias = true;' to the enum definition.
make: *** [t/test-full.pb-c.c] Error 1

版本太高了。尝试一下下面的命令

pip install -v protobuf==2.3

你可能感兴趣的:(python)