Affects Version/s: 0.11.0
Fix Version/s: None
Component/s: Python - Compiler
We are getting reports from users that our project is broken on thrift 0.11. Arrays with default values are newly broken in 0.11 because thrift_spec is not defined soon enough.
brew install thrift
git clone https://github.com/caffe2/BlueWhale.git
thrift --gen py --out . ml/rl/thrift/core.thrift
Notice that the TrainingParameters._init_ tries to use thrift_spec to handle the default array when thrift_spec doesn't exist yet. This results in this failure upon import:
AttributeError: 'TrainingParameters' object has no attribute 'thrift_spec'
The same thing works when using 0.10