[DB-SIG] pep 249
John Lhotak
John.Lhotak at noaa.gov
Tue Nov 6 23:22:08 CET 2007
Hello,
I have tried to install the Python Database API Specification v2.0
module on a linux system and I am having problem with the import command
after what seems like a installation with out errors. Here's how I did
the install:
Ran the build_ext with the following command:
python setup.py build_ext --esql-informixdir=/opt/informix
And got the following output:
running build_ext
/opt/informix/bin/esql -EDHAVE_ESQL9 -EDHAVE_DESCRIBE_INPUT -e
_informixdb.ec
building '_informixdb' extension
creating build
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/ext
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
-DPYTHON_INCLUDE=/usr/include/python2.4 -DHAVE_C_DATETIME=1
-DHAVE_PY_BOOL=1 -Iext -I/opt/informix/incl/esql
-I/usr/include/python2.4 -c ext/_informixdb.c -o
build/temp.linux-i686-2.4/ext/_informixdb.o
creating build/lib.linux-i686-2.4
gcc -pthread -shared build/temp.linux-i686-2.4/ext/_informixdb.o
/opt/informix/lib/esql/checkapi.o -L/opt/informix/lib/esql
-L/opt/informix/lib -lifsql -lifasf -lifgen -lifos -lifgls -lc -lm -ldl
-lcrypt -lifglx -o build/lib.linux-i686-2.4/_informixdb.so
Then ran the install:
python setup.py install
And got this output:
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-i686-2.4/_informixdb.so ->
/usr/lib/python2.4/site-packages
copying build/lib.linux-i686-2.4/informixdb.py ->
/usr/lib/python2.4/site-packages
byte-compiling /usr/lib/python2.4/site-packages/informixdb.py to
informixdb.pyc
So no errors and everything seems okay. When I get into python and try
to run:
import informixdb
I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/informixdb.py", line 146, in ?
from _informixdb import *
ImportError: /usr/lib/python2.4/site-packages/_informixdb.so: undefined
symbol: sqli_describe_input_stmt
Any help or incite is appreciated,
John
More information about the DB-SIG
mailing list