Cheers,

I'm trying to migrate my project, so i can use some of the benefits Eventlet offers (yum, concurrency). Right now I've had little success following the (former) approach of the Nova Project [1]. Is this still the (an) way to handle this? tryed several pool variants from the docs, but in the end the first querys dies within
a traceback like this:

File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 329, in on_connect
    extensions.register_type(extensions.UNICODE, conn)
TypeError: argument 2 must be a connection, cursor or None
eventlet db_pool seems to spawn a connection but psycopg2 is able to handle it. not sure how to debug this.

Somebody using eventlet with sqlalchemy in current versions?

[1]: http://bazaar.launchpad.net/~rackspace-titan/nova/sqlalchemy-eventlet/view/head:/nova/db/sqlalchemy/session.py
http://docs.sqlalchemy.org/en/latest/core/pooling.html
http://eventlet.net/doc/modules/db_pool.html
http://initd.org/psycopg/docs/advanced.html#support-to-coroutine-libraries

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