Am 03.02.2013 13:33, schrieb alexandra:
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.

Using dependency walker on _pg.pyd revealed that the following seem to
be missing from libpq:
PQescapeLiteral
PQescapeIdentifier
Looks like 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.

See recent discussion on the list.

If you're using the Windows binaries, you need the Postgres 9 libpq on the client; the server can be Postgres 8.

You can also use Postgres 8 on the client, but then you need to compile PyGres with escaping_funcs=0 in setup.cfg.

I'll upload additional binaries for Postgres 8 compiled with escaping_funcs=0 today.

-- Christoph



_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to