In all your table definitions you have format='%(name)' except in base_countries table, where you have format='%(name)s'.
I don't understand the trace back, the error is caused by format='%(name)s', which is what I have in my table definitions, and which doesn't cause any errors. Kind regards, Annet --

