Any chance this is the second iteration of declaring the User class in this session, and the first time was missing the primary_key?
I run into this in interactive sessions and need to call clear_mappers() before redoing the class. It seems that the old mapper is still hanging around and causes the compilation error. -- Mike Conley --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---