I ran into this also and it was caused by forgetting to map the class to the table. Make sure you have a line like:
orm.mapper(TaskAction, taskaction_table) Mike: should there be a more specific error message for a missing mapping? -aw On Feb 3, 11:04 am, "Michael Bayer" <mike...@zzzcomputing.com> wrote: > King Simon-NFHD78 wrote: > > > The line below the one you're complaining about is telling you what the > > column in question is: > > > Invalid column expression '<class '__main__.TaskAction'>' > > > So somehow, you've passed your TaskAction class in a place where SA is > > expecting a column expression. I think we'd need to see the command that > > you actually typed in to work out what the problem is. > > Also, again, please upgrade to 0.5.8. Hundreds of bugs and sub-optimal > behaviors have been fixed since 0.5.4p2 so you may get better results. > > > > > Simon > > > -- > > You received this message because you are subscribed to the Google Groups > > "sqlalchemy" group. > > To post to this group, send email to sqlalch...@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. > > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@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.