Hi DJ,

Psycopg2 has a C extension wrapped by Python.  That C extension must
be compiled with the same compiler used to compile the Python compiler
itself.

This is not a Django issue, this is a psycopg issue.  You should ask
for assistance on the psycopg mailing list, they'll be better able to
help you.

You should also look around for pre-compiled binaries of psycopg2 for
Windows, as the packagers will have taken this compiler mismatch issue
into account.

---Peter

On 11/17/08, dj <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am django novice and i am very, very ,very, very green.
>
> I am trying to setup the PostgresSQL database with the psycopg2
> library. I downloaded the psycopg2-2.0.8.tar file.
> Opened the tar with Winzip and installed the library from the command
> line using python setup.py. I got this really strange error message.
>
> error: Python built with Visual Studio 2003; extensions must be built
> with a complier than can generate compatiable binaries. Visual Studio
> 2003 was not found on this system. If you have Cygwin installed, you
> can tru compiling with MingW32, by passing "-c mingw32 to setup.py"
>
> I am not using Visual Studio for any of my development, I am using the
> python.
> Do I need to install Cywgin or is there a work around ?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to