Help Center/ ModelArts/ Troubleshooting/ Training Jobs/ Service Code Issues/ Error Message "No module name 'unidecode'" Displayed in Logs
Updated on 2023-01-17 GMT+08:00

Error Message "No module name 'unidecode'" Displayed in Logs

Symptom

After the configuration file of the Tacotron 2 model downloaded from the master branch of MindSpore open-source Gitee is modified and then uploaded to ModelArts for training, error message "No module name 'unidecode'" is displayed in logs.

Possible Causes

The Unidecode name of the requirements.txt file is incorrect, where U should be lowercase. As a result, the Unidecode module is not installed in the training job environment.

Solution

Change Unidecode in requirements.txt to unidecode.

Summary and Suggestions

Add the following line to the training code:

os.system('pip list')

Run the training job and check whether the required module is available in logs.