I get this error when creating a BoundMetaData object in SQLAlchemy 0.3.10. The fix is to just use MetaData instead of BoundMetaData. BoundMetaData is deprecated and replaced with MetaData
Example code:
from sqlalchemy import *
db = create_engine('sqlite:///test.db')
metadata = MetaData(db)
"""
Continue with the rest of your Python code
"""
5 Comments on this post
Leave a CommentThanks for this, been banging my head trying to use BoundMetaData() for about an hour.
Comment left on 4.4.2008 by Lee Bailey
I would also like to thank you.Why is it that complex problems have simple solutions and viceversa?
F.
Comment left on 9.29.2008 by Franco
This was great help. Thanks. After LINQ – trying SqlAlchemy – specifically echo statement was great benefit.
Comment left on 7.8.2009 by Govind
My pleasure guys..
Comment left on 7.17.2009 by shakir
thx, got the same bug and quickly fixed it with your blog.
Comment left on 3.20.2011 by Sinrain