Using cx_Oracle and rpy2 packages caused python.exe stopped working -
my os windows 7,python 3.6. use python package rpy2 call algorithm in r, r algorithm needs data in oracle database. , need other data in oracle,so try use cx_oracle it. however, when import cx_oracle it's allways cause problem'python.exe stopped working'. code is:
import rpy2.robjects robjects import cx_oracle robjects.r.source('analysis.r') rresults = robjects.r.analysis_function()#cause python.exe stopped working
but when didn't import cx_oracle rpy2 successful call r source , r results.
btw:i use odbc connect oracle database in r source. , in opinion, might cx_oracle influence connection in r source. i'm not sure whether causes problem.
is has such problem before? sorry bad english, helping me!
Comments
Post a Comment