On Mar 10, 2013, at 12:15 AM, senthil arumugam wrote: > nox@nox-ThinkPad-T420:~/pox$ echo "import psycopg2" > testme.py > nox@nox-ThinkPad-T420:~/pox$ python testme.py ... > DEBUG:core:Running on PyPy (2.7.2/Jun 07 2012)
psycopg2 is a CPython module and you're running POX using PyPy -- these are different interpreters and C extensions are not compatible between them. If you run POX using CPython (by removing the pypy directory or by doing "python pox.py ..."), things should work fine. Alternatively, a quick Google turns up two versions of psycopg2 that work on PyPy. This one looks good to me: https://pypi.python.org/pypi/psycopg2ct Alternatively, there's a pure Python Postgres implementation which should also work fine: http://pybrary.net/pg8000/ -- Murphy
