New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

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
Dataiker
Dataiker

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
Dataiker
Dataiker

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

veenacalambur
Level 2
Author

Thanks Clement - that was a pretty quick fix! 😃 

0 Kudos
Labels (4)
A banner prompting to get Dataiku DSS