Sorry, the psycopg2 binary driver is the 2.3.1 and the error I get
when I try to import psycopg2 on the compiled version is:

>>> import psycopg2
Traceback (most recent call last):
  File "<stdin>", line 1 in <module>
  File "build\bdist.win32\egg\psycopg2\__init__.py", line 69, in
<module>

  File "build\bdist.win32\egg\psycopg2\_psycopg2.py", line 7, in
<module>
  File "build\bdist.win32\egg\psycopg2\_psycopg2.py", line 6, in
__bootstrap__
ImportError: DLL load failed: No se puede encontrar el modulo
especificado.


On 23 feb, 12:21, salbefe <salb...@gmail.com> wrote:
> 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