I have SOLVED IT !!

I have to compile pyscopg2 but now it works !!

1. I added to the windows path variable ...\PostgrSQL\9.0\bin and ...
\PostgrSQL\9.0\lib
2. install mingw
3. download psycopg2
4. setup.py build -c mingw32
5. setup.py install

and now is working without problems. If ...\PostgrSQL\9.0\bin and ...
\PostgrSQL\9.0\lib are not added to the path is were I have the
problem with the "ImportError: DLL load failed2" when I try to import
psycopg2.


On 25 feb, 08:36, salbefe <salb...@gmail.com> wrote:
> Thank you Oleg,
>
> But it does not work for me. I get always the same error. I have tried
> moving the wsgi directory to several places outside the htdocs and
> does not work. I get always "global name psycopg2 is not defined".I'm
> using the last binary driver fromhttp://www.stickpeople.com. There is
> a comment on the link you have posted that says:
>
> "That should have problems as well as when mapping to a directory the
> trailing slash on URL where it mounts in WSGIScriptAlias line is
> important."
>
> Perhaps that is the key to get it working but I don't unterdand what
> it means.
>
> On 24 feb, 19:39, Oleg <obutov...@googlemail.com> wrote:
>
>
>
> > You dont need to compile psycopg2 yourself. The problem you have, most
> > probable, you can not solve in this way. Take a look here, for 
> > example:http://stackoverflow.com/questions/2160256/problem-install-and-run-ps...

Reply via email to