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

Options
Keerthan
Keerthan Registered Posts: 5 ✭✭✭
edited July 16 in Using Dataiku

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

Best Answer

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Answer ✓
    Options

    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

Setup Info
    Tags
      Help me…