What Do I Do If an Error Is Reported Indicating Unmatched Pillow/NumPy Version After the Migration?
Symptom
After a migrated script is executed, an error is reported indicating that the Pillow/NumPy version is incorrect.
Figure 1 Prompt message for Pillow
Figure 2 Prompt message for NumPy
Solution
Pillow and NumPy of earlier versions have security vulnerabilities. For details about the vulnerabilities, see MindSpore Security and NVD.
- If you use Python 3.8 or later, upgrade Pillow to 8.2.0 or later and NumPy to 1.23.0 or later.
- If you use Python 3.7.x (3.7.0 to 3.7.11), comment out certain code in the /x2ms_adapter/__init__.py file under the migration result output directory.
Figure 3 Commenting out certain code
Parent topic: FAQs