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?



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to