I have a simple test case given here:

>>> from sqlalchemy import *
>>> db = create_engine('postgres://user:[EMAIL PROTECTED]/test5')
>>> metadata = BoundMetaData(db)
>>> tb = Table('gffdata',metadata,autoload=True)

Up to this point, I think this looks like what is in the tutorial.  However, I 
get the following error when trying to autoload.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/sqlalchemy/schema.py", line 143, in 
__call__
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 505, in 
reflecttable
  File "build/bdist.linux-x86_64/egg/sqlalchemy/databases/postgres.py", line 
386, in reflecttable
TypeError: __init__() takes at most 2 arguments (3 given)

>>> metadata.get_engine().raw_connection
<bound method Engine.raw_connection of <sqlalchemy.engine.base.Engine object 
at 0x9168d0>>

But after I do this call, I can autoload the table without problem.

>>> tb = Table('gffdata',metadata,autoload=True)

And selecting, etc., works fine at this point.  What am I missing?

Thanks,
Sean

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

Reply via email to