django - python import cx_Oracle error on cygwin -
django - python import cx_Oracle error on cygwin -
i tried install cx_oracle pypi source since there no available port in cygwin. did create changes suggested in http://permalink.gmane.org/gmane.comp.python.db.cx-oracle/2492 , modified setup.py. however, still next error :-
$ python python 2.7.3 (default, dec 18 2012, 13:50:09) [gcc 4.5.3] on cygwin type "help", "copyright", "credits" or "license" more information. >>> import cx_oracle /usr/lib/python2.7/site-packages/cx_oracle-5.1.3-py2.7-cygwin-1.7.24-i686.egg/cx_oracle.py:3: userwa rning: module cx_oracle imported /usr/lib/python2.7/site-packages/cx_oracle-5.1.3-p y2.7-cygwin-1.7.24-i686.egg/cx_oracle.pyc, /home/zerog/cx_oracle-5.1.3 beingness added sys.pat h traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "build/bdist.cygwin-1.7.24-i686/egg/cx_oracle.py", line 7, in <module> file "build/bdist.cygwin-1.7.24-i686/egg/cx_oracle.py", line 6, in __bootstrap__ importerror: exec format error >>>
if can please help me prepare ?
tia.
fixed specifying path instantclient below :
$ export path=$path:/cygdrive/d/tools/instantclient_11_2
(other, perchance of import stuff) :
$ echo $ld_library_path /cygdrive/d/tools/instantclient_11_2 $ echo $oracle_home /cygdrive/d/tools/instantclient_11_2
now, :-
$ python python 2.7.3 (default, dec 18 2012, 13:50:09) [gcc 4.5.3] on cygwin type "help", "copyright", "credits" or "license" more information. >>> import cx_oracle >>>
python django cygwin cx-oracle
Comments
Post a Comment