module informixdb for Python-2.2.2

Steve Holden sholden at holdenweb.com
Mon Dec 2 21:27:32 EST 2002


"Martin Erren" <martin.erren at brainforce.at> wrote in message
news:c0eb9f27.0212020756.2bdd1dbd at posting.google.com...
> Hello!
>
> The newest informixdb module seems to be:
>
> http://starship.python.net/crew/sturner/informixdb.html
>
> but is for Python-1.5
>
> Now I upgraded to Python2.2.2 and
> simply copying the old moduls causes the error:
>
> $PYTHONHOME/Lib/informixdb.py:39: RuntimeWarning: Python C API version
> mismatch for module _informixdb:
> This Python has API version 1011, module _informixdb has version 1007.
>   import _informixdb
> $PYTHONHOME/Lib/informixdb.py:39: RuntimeWarning: Python C AP
> I version mismatch for module dbi: This Python has API version 1011,
> module dbi has version 1007.
>   import _informixdb
> Illegal instruction (core dumped)
>
> is this the "Python Database API Specification 1.0" or the Python API
> in
> general?
>
This is the Python API. There is no guarantee of compatibility between
versions, and an extension module compiled against 1.5.2 will not work with
2.0 or higher. Even the bytecodes change between versions, as thinking on
the best "Python virtual machine" changes.

You should also be aware that the current DB API specification is 2.0, so
this module is clearly antiquated.

> I tried to recompile after using esql, but i didn't managed it, to
> link a _informixdb.so due to much unknown dependencies, e.g.
> ".sqli_connect_open",
> loading each informix-module in /usr/informix/lib.
>
> Hope for help and thanks in advance:

Unfortunately it looks like you don't have the right Informix development
kit. Neither do I :-(

Have you tried mailing the module author? If so, with no luck, perhaps you
could try the DB-SIG mailing list - the detail are at

    http://mail.python.org/mailman/listinfo/db-sig

Sorry not to have anything more positive to report.

regards
-----------------------------------------------------------------------
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Previous .sig file retired to                    www.homeforoldsigs.com
-----------------------------------------------------------------------






More information about the Python-list mailing list