I am getting the following error with Psycopg 2.0.6 and SQLalchemy 0.3.4.
Any idea how get around this error?

Andreas
-----------


217-22-205-82:~/src/orm ajung$ python2.4 test.py
Traceback (most recent call last):
 File "test.py", line 18, in ?
   UsersTable = Table('users', metadata, autoload=True)
File "build/bdist.macosx-10.3-i386/egg/sqlalchemy/schema.py", line 143, in __call__ File "build/bdist.macosx-10.3-i386/egg/sqlalchemy/pool.py", line 216, in __getattr__ AttributeError: 'psycopg2._psycopg.connection' object has no attribute 'reflecttable'



from sqlalchemy import *
import psycopg2 as psycopg

psycopg = pool.manage(psycopg)

def getconn():
db = psycopg.connect(database='ajung_ewt2006', user='postgres', password='postgres', host='cmsdb')
   return db

p = pool.QueuePool(getconn, max_overflow=10, pool_size=5, use_threadlocal=True)
metadata = BoundMetaData(p.get().connection)
UsersTable = Table('users', metadata, autoload=True)

Attachment: pgpUoA5A95QbY.pgp
Description: PGP signature

Reply via email to