Community Conundrum 25:Feature Visualization is now live! Read More

Issue calling deployed Dataiku model into Python recipe

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
2 Replies
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.

Level 2
Author

Thanks Clement - that was a pretty quick fix! 😃 

0 Kudos
Labels (4)