> [snip] > > >>> csr.execute('select * from codes') > > Traceback (innermost last): [snip] Is it possible the word 'codes' is a reserved word for somebody in the connection chain? Rename the table to 'foo' and see what you get.