PyGresql 4.1.1 for python2.7

j.mapping at gmail.com j.mapping at gmail.com
Fri Jun 14 13:14:53 EDT 2013


On Sunday, February 3, 2013 4:14:34 AM UTC-7, alexandra wrote:
> Using dependency walker revealed that the following are missing from
>     libpq:
> 
>     PQescapeLiteral
> 
>     PQescapeIdentifier 
> 
>     These are only defined in postgresql 9.
> 
>     Documentation states that PyGresql 4.1.1 is compatible with
>     PostgreSQL 8.3 or higher and I'm using 8.4.
> 
>     Has anyone else had this problem?
> 
>     
> 
>     
> On 01/31/2013 03:03 PM, alexandra
>       wrote:
> 
>     
>     
>       
>       Hello,
> 
>       
> 
>       I'm trying to upgrade to python2.7.
> 
>       Installed PyGresql 4.1.1 for python 2.7.
> 
>       When running "import pg" command I get the following error:
> 
>       
> 
>       from _pg import *
> 
>       ImportError: DLL load failed: The operating system cannot run %1.
> 
>       
> 
>       I'm using Windows XP SP3, and have PostgreSQL 8.4 installed.
> 
>       The command runs fine in python 2.6.
> 
>       
> 
>       Is this due to having multiple versions of python installed? Or
>       some kind of dll incompatibility with 2.7 (maybe libpq.dll)?
> 
>       
> 
>       Thanks for the help

Yes I'm having this problem also.  Did you ever find a solution?

J



More information about the Python-list mailing list