get_constant_value have its interface changed in the master of Theano. It was renamed get_scalar_constant_value and raise an theano.tensor.NotScalarConstantError error.