swig-python import error

A

abarun22

Hi
I am facing a problem while loading a SWIG generated shared module
from python. The development is under HP-UX 32b platform. I use gcc
version 4.0.2 to build the shared module. This is how i try to build
the module.

# Compilation
GCC="$GCC -march=1.1"
$GCC -v -c -fpic ${ETUDE}.c ${ETUDE}_wrap.c -DDOUBLE_PRECISION -
DDON_DOUBLE_PRECISION ${PYTHON_INCLUDE_PATH} ${CHAINE_INCLUDE_PATH}

# linking
ld -b binary -g -shared ${ETUDE}.o ${ETUDE}_wrap.o -o _${ETUDE}.so \
-a archive ${LIBS_CHAINE_PATH} -lfichiers_r8 -lmem -lutilitaires -
lsysteme -lcalcul -lmsgml -lcaractere \
-rpath -L/michprojects/ef/deli/Working/Source/deli9-PYAPI/Sandbox/libs/
chaine/PYAPI/don -L/michprojects/ef/deli/Working/Source/deli9-PYAPI/
Sandbox/libs/chaine/hppa_portable-hp-hpux11.11/Debug

The module generated is called _don.so. In addition to that i set the
module path in LD_LIBRARY_PATH environment variable. Th error looks
like as follows.

Import error: module cannot be loaded.

But i am wondering how i am getting import error although every thing
looks OK. Any ideas are most welcome and thanks in advance.
Regards,
Arun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top