Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get cx_Oracle to work with Python version 2.7 / mac os 10.7.2 (Lion) - missing_OCIAttrGet
    primarykey
    data
    text
    <p>Can't get cx_Oracle to work with Python version 2.7 / mac os 10.7.2 (Lion)</p> <p>One other thing: I have installed oracle 32 bit, not sure if that was correct.</p> <pre><code> Traceback (most recent call last): File "reader.py", line 9, in &lt;module&gt; import cx_Oracle File "build/bdist.macosx-10.7-intel/egg/cx_Oracle.py", line 7, in &lt;module&gt; File "build/bdist.macosx-10.7-intel/egg/cx_Oracle.py", line 6, in __bootstrap__ ImportError: dlopen(/Users/me/.python-eggs/cx_Oracle-5.1.1-py2.7-macosx-10.7-intel.egg-tmp/cx_Oracle.so, 2): Symbol not found: _OCIAttrGet Referenced from: /Users/me/.python-eggs/cx_Oracle-5.1.1-py2.7-macosx-10.7-intel.egg-tmp/cx_Oracle.so Expected in: flat namespace in /Users/me/.python-eggs/cx_Oracle-5.1.1-py2.7-macosx-10.7-intel.egg-tmp/cx_Oracle.so </code></pre> <p>They key problem seems to be not being able to locate <code>_OCIAttGet</code>, and I think this means that it cant find a lib file or something. </p> <p>Found on the web, someone talking about <code>DYLD_LIBRARY_PATH</code>, but mine is set, however he mentioned it in <code>cxoracle.cfg</code> file, that I can not locate, is this my problem?</p> <p><em>EDIT</em></p> <p>After trying to run it with 32 bit mode python, I see a different error.</p> <pre><code> Traceback (most recent call last): File "reader.py", line 9, in &lt;module&gt; import cx_Oracle File "build/bdist.macosx-10.7-intel/egg/cx_Oracle.py", line 7, in &lt;module&gt; File "build/bdist.macosx-10.7-intel/egg/cx_Oracle.py", line 3, in __bootstrap__ ImportError: No module named pkg_resources </code></pre> <ul> <li>I could not get the oracle 64 bit versions to run on my computer, kept getting segmentation faults when i ran sqlplus, so thats why I am using the 32.</li> </ul> <p><em>SECOND EDIT</em></p> <p>Actually no matter what i install, it is not the right version.. 32 bit version</p> <pre><code> ld: warning: ignoring file /opt/oracle/instantclient10_2/libclntsh.dylib, file was built for unsupported file format which is not the architecture being linked (i386) </code></pre> <p>64 bit version:</p> <pre><code> ld: warning: ignoring file /opt/oracle/instantclient10_2/libclntsh.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) </code></pre> <p>I am going to try 11g, but that only has a 64 bit version. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload