Python w/ cx_Oracle lib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python w/ cx_Oracle lib

David L. Peck

Has anyone ever received the following error trying to run the cx_Oracle import in SPSS?

 

BEGIN PROGRAM PYTHON.

import spss

import cx­_Oracle

END PROGRAM.

 

 

 

Traceback (most recent call last):

  File "", line 3, in

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

 

 

Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: Python w/ cx_Oracle lib

Jon K Peck
I am not familiar with the Oracle dll, but my first guess is that it was compiled with a different version of the compiler from Python or the plugin.  However, the syntax below is not legal.  The dll name can't have a hyphen in it.

Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        "David L. Peck" <[hidden email]>
To:        [hidden email]
Date:        07/22/2011 07:35 AM
Subject:        [SPSSX-L] Python w/ cx_Oracle lib
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Has anyone ever received the following error trying to run the cx_Oracle import in SPSS?
 
BEGIN PROGRAM PYTHON.
import spss
import cx­_Oracle
END PROGRAM.
 
 
 
Traceback (most recent call last):
  File "", line 3, in
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
 
 
Thanks!