New submission from Wong Wah Meng <wahm...@freescale.com>: Platform : HP-UX 11.31 on Itanium ia64. HP Compiler: # swlist -l product | grep Compiler ACXX C.06.26.EVAL HP C/aC++ Compiler C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler COMPLIBS B.11.31 Compiler Support Libraries
I downloaded cx_Oracle5.1 source code and run python setup.py build and able to build the module. However, when I import the module it just cannot load without giving any explicit indication what goes wrong. Does anyone knows why? $ python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.hp-ux-B.11.31-ia64-2.7-11g cc -Ae -Olimit 1500 -g -DNDEBUG -O +z -I/opt/oracle/product/11.1.0/rdbms/demo -I/opt/oracle/product/11.1.0/rdbms/public -I/home/r32813/Build/2.7.1/Python-2.7.1/Include -I/home/r32813/Build/2.7.1/Python-2.7.1/Lib/.. -c cx_Oracle.c -o build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.0 cc: warning 1913: `1500' does not exist or cannot be read "/home/r32813/Build/2.7.1/Python-2.7.1/Include/pyfpe.h", line 8: warning #3750-D: "\" followed by white space is not a line splice / Copyright (c) 1996. \ ^ "NumberVar.c", line 306: warning #4232-D: conversion from "PyObject *" to a more strictly aligned type "PyFloatObject *" may cause misaligned access doubleValue = PyFloat_AS_DOUBLE(value); ^ "NumberVar.c", line 579: warning #4232-D: conversion from "PyObject *" to a more strictly aligned type "PyFloatObject *" may cause misaligned access var->data[pos] = PyFloat_AS_DOUBLE(value); ^ creating build/lib.hp-ux-B.11.31-ia64-2.7-11g ld -b build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -L/opt/oracle/product/11.1.0/lib32 -L/opt/oracle/product/11.1.0 -lclntsh -o build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $ ls -lrt build total 0 drwx------ 2 r32813 users 96 Sep 16 20:33 temp.hp-ux-B.11.31-ia64-2.7-11g drwx------ 2 r32813 users 96 Sep 16 20:33 lib.hp-ux-B.11.31-ia64-2.7-11g $ cp build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $PYTHONPATH $ python iPython 2.7.1 (r271:86832, Sep 15 2011, 14:46:37) [C] 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 /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so >>> $ env | grep PYTHON PYTHONPATH=/home/r32813/Build/2.7.1/Python-2.7.1/Lib $ ---------- components: Extension Modules messages: 144130 nosy: wah meng priority: normal severity: normal status: open title: cx_Oracle failed to load in newly build python 2.7.1 type: crash versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12994> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com