Rpy2 cannot import dataiku R library

Options
khalidnajm
khalidnajm Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 4 ✭✭✭

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

Answers

  • Triveni
    Triveni Dataiker, Registered Posts: 20 Dataiker
    Options

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

  • khalidnajm
    khalidnajm Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 4 ✭✭✭
    Options

    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
    jvijayakumar2 Partner, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 30 Partner
    Options

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

Setup Info
    Tags
      Help me…