Issue calling deployed Dataiku model into Python recipe

Solved!
veenacalambur
Level 2
Issue calling deployed Dataiku model into Python recipe

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. 

0 Kudos
1 Solution
Clรฉment_Stenac

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.

View solution in original post

2 Replies
Clรฉment_Stenac

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.

veenacalambur
Level 2
Author

Thanks Clement - that was a pretty quick fix! ๐Ÿ˜ƒ 

0 Kudos