[cx-oracle-users] cx_Oracle 4.1 crashing Python 2.3 vm under Mac OS X
Brought to you by:
atuining
From: Sean P. K. <sp...@ge...> - 2005-02-01 19:21:05
|
Anthony, I have been trying to compile this version on Mac OS X 10.3.7 with Python 2.3 and have run into a strange problem. Below is a copy of the session, where I build and install cx_Oracle and then try to import it. It crashes the python interpreter. Even though I get a few compiler errors, it seems that everything is actually going fine. I was able to use the previous version without a problem. Do you have any ideas what might be going on. I researched the error a bit and it mentioned that this can happen when something is compiled against a different version of Python and then the one it is being run in. I do have python 2.4 on the system as well, but it is in another directory and I have done some testing, and am reasonable sure this isn't the problem, unless there are some hard coded paths in the module somewhere (which seems unlikely). Any ideas? Thanks, Sean ------ $ sudo python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.darwin-7.7.0-Power_Macintosh-2.3 gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/Users/spkane/oracle/OraHome_1/rdbms/demo -I/Users/spkane/oracle/OraHome_1/rdbms/public -I/Users/spkane/oracle/OraHome_1/network/public -I/Users/spkane/oracle/OraHome_1/plsql/public -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ python2.3 -c cx_Oracle.c -o build/temp.darwin-7.7.0-Power_Macintosh-2.3/cx_Oracle.o -DBUILD_TIME="February 01, 2005 11:11:53" In file included from /Users/spkane/oracle/OraHome_1/rdbms/public/oci.h:2327, from cx_Oracle.c:9: /Users/spkane/oracle/OraHome_1/rdbms/public/oci1.h:148: warning: function declaration isn't a prototype In file included from /Users/spkane/oracle/OraHome_1/rdbms/public/ociap.h:206, from /Users/spkane/oracle/OraHome_1/rdbms/public/oci.h:2351, from cx_Oracle.c:9: /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:674: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2665: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2674: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2684: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2693: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2702: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2711: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2719: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2729: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2736: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/nzt.h:2744: warning: function declaration isn't a prototype In file included from /Users/spkane/oracle/OraHome_1/rdbms/public/oci.h:2351, from cx_Oracle.c:9: /Users/spkane/oracle/OraHome_1/rdbms/public/ociap.h:9952: warning: function declaration isn't a prototype /Users/spkane/oracle/OraHome_1/rdbms/public/ociap.h:9958: warning: function declaration isn't a prototype creating build/lib.darwin-7.7.0-Power_Macintosh-2.3 gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.7.0-Power_Macintosh-2.3/cx_Oracle.o -L/Users/spkane/oracle/OraHome_1/lib -lclntsh -o build/lib.darwin-7.7.0-Power_Macintosh-2.3/cx_Oracle.so $ sudo python setup.py install running install running build running build_ext running install_lib copying build/lib.darwin-7.7.0-Power_Macintosh-2.3/cx_Oracle.so -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages $ python Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap $ |