Cx_oracle For Mac
After installing oracle () I later attempted to use the library to allow development using Oracle, and ran in to a problem. The problem was that every time I would try to include cx_Oracle in python, I would see the follow error: $ python Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type 'help', 'copyright', 'credits' or 'license' for more information. >>> import cx_Oracle Traceback (most recent call last): File ', line 1, in ImportError: dlopen(/Users/michaellynch/Virtualenvs/flask/lib/python2.7/site-packages/cx_Oracle.so, 2): Symbol not found: _OCIAttrGet Referenced from: /Users/michaellynch/Virtualenvs/flask/lib/python2.7/site-packages/cx_Oracle.so Expected in: flat namespace in /Users/michaellynch/Virtualenvs/flask/lib/python2.7/site-packages/cx_Oracle.so >>> Years ago, I had the same problem, and posted it to StackOverflow. Here is the link to that problem: As you can see, the solution has been a moving target. Originally, only the 32 bit version of Oracle was working and that was working only with Python in 32 bit mode. It seems that the Mac version of Python respected the environment setting, but that other versions of python did not. If you installed the 64 bit version of Oracle, SQL*Plus would work, but cx_Oracle would not: $ arch -i386 python2.7 Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type 'help', 'copyright', 'credits' or 'license' for more information.
Cx_Oracle for Linux allows access to Oracle and conforms to the Python database API 2.0 specifications with a number of additions. Ucup seal pump plunger seal for mac. Best Video Software for the Mac How To Run MacOS High Sierra.
>>> import cx_Oracle Traceback (most recent call last): File ', line 1, in ImportError: dlopen(/Users/michaellynch/Virtualenvs/flask/lib/python2.7/site-packages/cx_Oracle.so, 2): Library not loaded: /ade/b/489207761/oracle/rdbms/lib/libclntsh.dylib.11.1 Referenced from: /Users/michaellynch/Virtualenvs/flask/lib/python2.7/site-packages/cx_Oracle.so Reason: no suitable image found. Did find: /opt/oracle/instantclient/libclntsh.dylib.11.1: mach-o, but wrong architecture The solution that I found was to install the 32 bit version of Oracle, and then include the arch flag when starting python.

Cx_oracle For Python 3.6
$ arch -i386 python2.7 Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type 'help', 'copyright', 'credits' or 'license' for more information. >>> import cx_Oracle >>>Download radio javan for mac. Update: Converting python to 32 bit I found it annoying to have to continuously use the flag whenever I launched python, and since I was already using a virtual env for python development, I thought why not make a 32 bit version of python default?
Cx_oracle For Mac
About cx_Oracle. Cx_Oracle is a Python extension module that enables access to Oracle Database. It conforms to the Python database API 2.0 specification with a considerable number of additions and a couple of exclusions. Cx_Oracle 7 has been tested with. Hello, I am running OSX Yosemite and Python native build for Mac Python 2.7.6. I have installed the 64 bit Instant client and sqlplus on to the system.
Comments are closed.