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

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -