Hi Bruno, I had received the same error message when I modified an attribute of an instance. The instance was created before the map was made to the class. Not sure if you're doing something similar - but the sample code is in the thread: http://groups.google.com/group/sqlalchemy/browse_thread/thread/6f2fd14564172215
-Raj On Mar 12, 8:57 am, "Michael Bayer" <[email protected]> wrote: > it means mapper compilation has failed or you're doing something > internally on an attribute before mappers have been compiled. mappers can > be compiled explicitly by saying compile_mappers(). > > > > Bruno Zanchet wrote: > > > Hi all, > > > We're facing a weird, (apparently) hard to reproduce bug. When > > accessing a property of an object: > > [...] > > sig.update('u=%s;%s;%s' % (token.user.id, token.user.yuid, > > token.user.guid)) > > > File "/home/y/lib/python2.5/site-packages/sqlalchemy/orm/ > > attributes.py", line 159, in __get__ > > return self.impl.get(instance_state(instance)) > > > AttributeError: 'NoneType' object has no attribute 'get' > > > User is a class which extends declarative_base(). > > > The "token.user.id" statement is triggering the exception. It's > > SQLAlchemy 0.5.2. The same code runs just fine with 0.5.0rc4. I didn't > > dig deeper on this, yet, but... any ideas on what might be causing > > this? > > > Bruno- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
