Re: DatabaseError: execute used with asynchronous query

2012-03-09 Thread Daniel Svonava
Just to wrap up, I describe a fix here: http://www.manasupo.com/2012/03/geventpsycopg2-execute-cannot-be-used.html Cheers, Daniel On Feb 28, 4:25 pm, j_syk wrote: > As far as I remember, I quickly switched back to 'sync' worker type (the > default) for the app which had this

Re: DatabaseError: execute used with asynchronous query

2012-02-28 Thread j_syk
As far as I remember, I quickly switched back to 'sync' worker type (the default) for the app which had this problem. I've never seen the error again. I have another project running on eventlet, still with gunicorn, postgres, and psycopg2. Never have had any problems with that one. So maybe it

Re: DatabaseError: execute used with asynchronous query

2012-02-28 Thread Daniel Svonava
Hi, this same error happened to me as well. My setup: Django==1.3.1 gevent==0.13.6 greenlet==0.3.4 gunicorn==0.13.4 psycopg2==2.4.4 I use this function to make psycopg2 "green" (in the gunicorn config): worker_class = "gevent" def def_post_fork(server, worker): from psyco_gevent import

DatabaseError: execute used with asynchronous query

2012-01-20 Thread j_syk
I was testing one my apps today with a form that features a drop-down field that initiates a json lookup for additional detail. You choose a location, it populates address fields. It's been working for weeks. Today, when I clicked an entry, the target detail field didn't change. I have debug off,