python - IDLE shell not able to find image for cx_Oracle (Reason: image not found) -
hi - i've installed cx_oracle on mac os x yosemite 10.10 , able query oracle database through mac terminal using python 2.7.11 in terminal.
the problem idle shell application cannot import cx_oracle , displays following error:
python 2.7.11 (v2.7.11:6d1b6a68f775, dec 5 2015, 12:54:16) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "copyright", "credits" or "license()" more information. >>> import cx_oracle traceback (most recent call last): file "<pyshell#0>", line 1, in <module> import cx_oracle importerror: dlopen(/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cx_oracle.so, 2): library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libclntsh.dylib.11.1 referenced from: /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cx_oracle.so reason: image not found
below seeing in mac terminal (i can proceed query database):
python 2.7.11 (v2.7.11:6d1b6a68f775, dec 5 2015, 12:54:16) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import cx_oracle >>>
what missing idle not allow import cx_oracle?
instead of running idle pinned icon, run python -m idlelib.idle
. (for 3.x, .idle
not needed.) don't know why works better in case, know running icons hides needed info, such binary run, current working directory python run in, startup arguments, , error messages.
Comments
Post a Comment