Vortexmind wrote: > Hi all > I'm new to python and was playing around with Elixir tutorial (a > wrapper for Sqlalchemy). > I get a failed import with this code > > from elixir import * > > metadata.bind = "sqlite:///movies.sqlite" > metadata.bind.echo = True > > class Movie(Entity): > title = Field(Unicode(30)) > year = Field(Integer) > description = Field(Unicode) > > def __repr__(self): > return '<Movie "%s" (%d)>' % (self.title, self.year) > > > If I load it in a python shell (either python or ipython) I get this > error > > ImportError: cannot import name association_proxy > > from trace, this is the call that fails > from sqlalchemy.ext.associationproxy import association_proxy > > I checked in the SqlAlchemy docs, and I found that it's a feature > present in version >= 0.31 > As I'm using gentoo linux, I've checked out and I have installed 0.37 > so I should have it. > > Any clue?
The function 'association_proxy' is present starting in 0.3.8+. The 0.3.7 release is few days shy of a year old- the current version is 0.4.5. I'd suggest upgrading if you're following any of the online tutorials for SA or Elixir. -j --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---