[DB-SIG] Informixdb question ?

Alexander Kuznetsov alexan@unicorn.micex.ru
Tue, 15 Sep 1998 11:59:46 +0400


Robert Saunders wrote:

> I am new to Python and am looking to implement an interface to some of our
> existing end user support code that accesses an Informix SE database.
>         My problem is directly related to the informixdb code.  I compiled the
> informixdb code and copied _informixdb.so to /usr/local/lib/python1.5 as
> well as the *.py and *.pyc.
>         When I type, import informixdb, I get the following error:
>
> Python 1.5.1 (#1, Aug 27 1998, 23:18:57)  [GCC 2.8.1] on sunos5
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import informixdb
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: dynamic module does not define init function (initinformixdb)
> >>>
>
>         I checked the ifxdbmodule.ec and found init_informixdb remarked out of the
> code with initinformixdb in its place.  In a vain attempt to fix code I
> don't understand I remarked out init_informixdb and marked in initinformixdb.
>         Neither attempt worked.
>         Any help would be greatly appreciated.
>
> Bob Saunders
>
> _______________________________________________
> DB-SIG maillist  -  DB-SIG@python.org
> http://www.python.org/mailman/listinfo/db-sig

Use Kinfxdb for best. Proved to work with Informix SE 7.* on Linux.

--
Alexander Kuznetsov, alexan@unicorn.micex.ru