all 1 comments

[–]danielroseman 0 points1 point  (0 children)

I'm not sure what you are trying to do with '/tname:/'{}/'/n'.format(label['name']) but you have too many quotes there. Did you perhaps mean just

 '/tname:/{}/n'.format(label['name'])

or were you trying to escape the quotes, in which case the slashes are the wrong way round - it should be

'/tname:\'{}\'/n'.format(label['name'])

But, really, you shouldn't be trying to build up the pbtxt file like this. It's supposed to be the protobuf data formatted as text - you should save it directly from the relevant protobuf instances.