I have an import error with
from psycogreen.gevent import psyco_gevent
psyco_gevent.make_psycopg_green()
it says:
ImportError: cannot import name psyco_gevent
I installed psycopg2
and psycogreen
; and I followed this nice article about Django, Gevent, and Socket.io. This article also talks about it (it might be the source of the first article) and talks about a file named psyco_gevent.py
on bitbucket which is not available anymore (404 error).
For the psycogreen, it does look like its changed a bit. Check it out on bitbucket: https://bitbucket.org/dvarrazzo/psycogreen/overview
It looks like this code:
Should be changed to the same as the other psycogreen calls: