python - Apache Thrift Tutorial Error -
i've been trying learn use apache thrift in python following tutorial: http://www.billdimmick.com/devjournal/building-an-apache-thrift-service-in-python.html. thrift file used tutorial is:
namespace py demo service mathservice { i64 add(1: i64 a, 2: i64 y) }
when try compile python code thrift --gen py:new_style demo.thrift following error:
[error:/home/pi/programming/python/thrift-tutorial/demo.thrift:4] (last token '{') syntax error [failure:/home/pi/programming/python/thrift-tutorial/demo.thrift:4] parser error during include pass
i can't see wrong thrift file i'm still getting errors. what's wrong?
Comments
Post a Comment