---
title: E40024 Environment_Error_Call_Python_Function_Failed
description: "Failed to call Python Method %s. Reason: %s."
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/atlaserrorcode_15_0315.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/atlaserrorcode_15_0315.html
indexId: d878540a402a67c94c18ef0911059bae79b9f11baa7fe7b187f4d711b3ed338884
---
# E40024 Environment_Error_Call_Python_Function_Failed

#### Symptom

Failed to call Python Method %s. Reason: %s.


#### Possible Cause

The Python Method does not exist.


#### Solution

1. Check that the called function is correct or the Python dependency library is installed.
2. Check the CANN environment variable settings.
3. Reinstall the CANN package.
