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

Solved!
Keerthan
Level 2
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 16: ordinal not in range(128)
 

In Dataiku DSS Version 9.0.1

while running the below code line in jupyter notebook in python_37 environment 

clf = models_obj.get_predictor(version_id = version_id)

 

--> 317                 clf = pickle.load(f)
    318                 try:
    319                     logger.info("Post-processing model")

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

method call fails , detail of error in screenshot 

0 Kudos
1 Solution
sergeyd
Dataiker

Hi @Keerthan 

Looks like you are trying to return a predictor for the saved model with Python3.7 while the model was previously trained with Python2.7. Can you re-train the model with Python3.7 first and then run this code? 

Thanks

View solution in original post

1 Reply
sergeyd
Dataiker

Hi @Keerthan 

Looks like you are trying to return a predictor for the saved model with Python3.7 while the model was previously trained with Python2.7. Can you re-train the model with Python3.7 first and then run this code? 

Thanks