E40024 Call Python Func or Method Expection

Symptom

Failed call Python Func/Method [%s], Reason[%s]

Possible Cause

The Python Func/Method does not exist.

Solution

  1. Check that the spelling of the invoked function is correct or the Python dependency library is installed.
  2. Set CANN environment variables.

    Log in to the environment as the CANN running user and run the source ${install_path}/set_env.sh command to set environment variables.

    ${install_path} indicates the CANN installation path, for example, /usr/local/Ascend/ascend-toolkit.

  3. Reinstall the CANN package.