I guess it's ipython cause when I tried saving the tutorial source code in a file and run python xxxx.py everything is working fine. Yeah you're right seems ridiculous. :)
On Thu, Sep 3, 2009 at 11:10 PM, Mike Conley <[email protected]> wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
