Rpy2 cannot import dataiku R library

khalidnajm
Level 2
Rpy2 cannot import dataiku R library

When I run 

 

robjects.r('library(dataiku)')

 

It returns the error:

RRuntimeError: Error: package or namespace load failed for 'dataiku':
package 'RJSONIO' was installed by an R version with different internals; it needs to be reinstalled for use with this R version

RJSONIO 1.3
rpy2 2.8.5
python 3.7
R 3.6.0
dataiku 6.0.0

0 Kudos
3 Replies
Triveni
Dataiker

Hello, did you try to reinstall RJSONIO? After doing so please reinstall the dataiku library as well and confirm that it was loaded correctly.

0 Kudos
khalidnajm
Level 2
Author

Hello, 

Sorry for the late reply.

I wouldn't have been to do that because the RJSONIO version is fixed (see below). Instead, I decided to leave rpy2 and write everything in a separate R endpoint. 

# These packages cannot be removed nor reversioned
                        
"dplyr",
"httr",
"RJSONIO","1.3"
"gtools",
"base64enc",
"curl","2.4"

"IRkernel",

 

jvijayakumar2
Level 3

Do we have a solution to this issue? I have the same

0 Kudos