On Tue, Sep 20, 2016 at 5:36 AM, Rahul Ahuja <rah.ah...@gmail.com> wrote:
> Thanks for the swift reply, Mike! Unfortunately, I had some trouble running
> your code. I'm getting
>     base = automap_base(MetaData())
>   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/automap.py",
> line 848, in automap_base
>     Base.__name__,
> AttributeError: 'MetaData' object has no attribute '__name__'
>
> For some reason the class name doesn't seem to be parsing?

I think it should have been:

base = automap_base(metadata=MetaData())

...although I haven't followed the rest of the thread and I don't know
why it was necessary to specify the metadata specifically in the first
place.

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 https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to