cx_Oracle in HPUX 11.23 with python 2.7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fernandotf
    New Member
    • Jan 2012
    • 1

    cx_Oracle in HPUX 11.23 with python 2.7

    Hi

    I was able to compile python and cx_oracle with success in hpux 11.23 itanium.

    I am trying to load cx_Oracle from python and i get this error:

    Python 2.7.2 (default, Jan 24 2012, 20:24:38)
    [GCC 3.4.3] on hp-ux11
    Type "help", "copyright" , "credits" or "license" for more information.
    >>> import cx_Oracle
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: Failed to load /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so


    My python is installed in a custom location and the bin folder listed in PATH variable as you can see:

    user@server: /app/icm/user/cx_Oracle-5.1.1 # which python
    /app/icm/user/tools/python/bin/python


    file /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so
    /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so: ELF-32 shared object file - IA64


    ldd /app/icm/rgricm06/tools/python/lib/python2.7/site-packages/cx_Oracle.so

    /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so:
    libc.so.1 => /usr/lib/hpux32/libc.so.1
    libclntsh.so.10 .1 => /opt/oracle/product/10.2.0/lib32/libclntsh.so.10 .1
    libdl.so.1 => /usr/lib/hpux32/libdl.so.1
    libnnz10.so => /opt/oracle/product/10.2.0/lib32/libnnz10.so
    librt.so.1 => /usr/lib/hpux32/librt.so.1
    libnss_dns.so.1 => /usr/lib/hpux32/libnss_dns.so.1
    libdl.so.1 => /usr/lib/hpux32/libdl.so.1
    libm.so.1 => /usr/lib/hpux32/libm.so.1
    libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1
    libunwind.so.1 => /usr/lib/hpux32/libunwind.so.1
    libnsl.so.1 => /usr/lib/hpux32/libnsl.so.1
    libdl.so.1 => /usr/lib/hpux32/libdl.so.1
    libuca.so.1 => /usr/lib/hpux32/libuca.so.1
    libxti.so.1 => /usr/lib/hpux32/libxti.so.1

    chatr /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so
    /app/icm/user/tools/python/lib/python2.7/site-packages/cx_Oracle.so:
    32-bit ELF shared library
    shared library dynamic path search:
    LD_LIBRARY_PATH enabled first
    SHLIB_PATH enabled second
    embedded path enabled third /opt/oracle/product/10.2.0/lib32:/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3:/usr/ccs/bin:/usr/ccs/lib:/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../..
    shared library list:
    libc.so.1
    libclntsh.so.10 .1
    shared library mapped private disabled
    shared vtable support disabled
    explicit unloading enabled
    linkage table protection disabled
    segments:
    index type address flags size
    7 text 04000000 z---c- D (default)
    8 data 40010000 ---m-- D (default)
    kernel assisted branch prediction enabled
    lazy swap allocation for dynamic segments disabled
    nulptr dereferences trap disabled
    address space model: default
    caliper dynamic instrumentation disabled

    Is there any way to get more details on why python is not loading up the library? Can somebody point me the direction? (By the way, all the commands above i just took from some other forums which people where showing these results, i figure should be something useful for answers...)
Working...