Interaction with saved models

Solved!
DanielaAndaluz
Level 1
Interaction with saved models

Hi, when trying to retireve a model I created via AutoML I get the following error: 

'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

the code I'm using is 

m = dataiku.Model(my_model_id)
my_predictor = m.get_predictor()

my_clf = my_predictor._clf

 I do know I'm using the correct modelID, but I don't understand why I am getting this error.

0 Kudos
1 Solution
HenriC
Dataiker

Hi @DanielaAndaluz !

This message usually means that you do not use the same version of Python in your model and in the Python recipe you are trying to execute.

You should use Python 3 both to run your model and to execute a recipe on it.

Does it make sense?

View solution in original post

2 Replies
HenriC
Dataiker

Hi @DanielaAndaluz !

This message usually means that you do not use the same version of Python in your model and in the Python recipe you are trying to execute.

You should use Python 3 both to run your model and to execute a recipe on it.

Does it make sense?

DanielaAndaluz
Level 1
Author

@HenriC it makes sense, thank you! 

0 Kudos