Do you perhaps have more than one “Caja” class in your application? Try printing out some of the following values:
your_instance.__dict__ type(your_instance) type(your_instance).__dict__ sys.modules[type(your_instance).__module__] Can you drop into pdb at the point where the exception occurs and poke around at the object interactively? Otherwise, you’re going to have to send us a complete script that demonstrates the problem. Simon > On 13 Oct 2015, at 22:37, Cecilio Ruiz <cecili...@gmail.com> wrote: > > The error message says: : "AttributeError: 'Caja' object has no attribute > 'imp' > > Yes, is typo error en email. The imp attibute is lower case. > > El martes, 13 de octubre de 2015, 23:01:34 (UTC+2), Simon King escribió: > return "<Caja('%s', Cond. %s Ent:%s Fch:%s Grup:%s', Ent: %i' Sal: %i > Imp:%.2f)>" % (self.id, self.id_Conceptos, self.Entidad, self.Fecha, > self.Grupo, self.Entrada, self.Salida, self.imp) > > > > Can you share the full traceback? Caja.Imp doesn’t exist, but Caja.imp (note > lower case “i”) should, so assuming that was a typo in your email, there must > be some other problem. > > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > Visit this group at http://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.