Issue calling deployed Dataiku model into Python recipe

veenacalambur
veenacalambur Registered Posts: 5 ✭✭✭✭

Hello,

I'm facing an issue trying to read a Dataiku Visual Model into a Python recipe to do some custom scoring. I think the model call from dataiku.Model is making the correct call but it's not able to process the get_predictor() command correctly and I'm seeing a strange out of range error.

Attaching a screenshot here for reference.

Best Answer

  • Clément_Stenac
    Clément_Stenac Dataiker, Dataiku DSS Core Designer, Registered Posts: 753 Dataiker
    Answer ✓

    Hi,

    The likely reason is that you trained the model with a Python 2.7 code env and are using a Python 3 code env to call get_predictor.

    The underlying Python pickles are Python-version dependent, so you must use the same Python at train time and usage time.

Answers

Setup Info
    Tags
      Help me…