Hello,

I have read severals posts about this error before posting but no one
solves my problem.

I'm running web2py from sources on a windows xp machine with python
2.6.6. I have downloaded and installed the last binary stable psycopg2
3.2.1 driver for windows and last I have downloaded mod_wsgi-win32-
ap22py26-3.3.so - Apache 2.2 / Python 2.6 from cod.google.com. Apache
2.2 is running ok.

When I run web2py from command line, there is no problem and all works
ok. If I run web2py with apache 2.2 and mod_wsgi is when I get the
error: "global name psycopg2 is not defined"

I have tried to solve the problem uninstalling the psycopg2 binary
driver, and compiling the same from sources. The compilation process
is always ok and puts the .egg file on c:\Python26\Lib\site-packages;
the problem is with the compiled version of psycopg2 when I try to run
web2py from sources it not detects the psycopg2 driver and if I try to
import psycogp2 from the python command line I get an error saying
that "some DLL's were not imported"

I'm running a postgreSQL 9.0 server. Is it possible that I need some
devel postgres libraries??
¿¿Anyone knows how to solve this problem???

Thanks in advance.

Reply via email to