Uninstallation

  • Before the uninstallation, check whether any Vision SDK service is running. User data and configuration are retained after the uninstallation. Uninstalling the SDK is a high-risk operation. Ensure that no service is using the SDK before uninstalling it.
  • When Vision SDK is uninstalled, the related operator files are also deleted. The installation directory of these operator files is ${ASCEND_OPP_PATH}/vendors/customize_vision, where ${ASCEND_OPP_PATH} stores CANN environment variables during Vision SDK installation. If there are multiple Vision SDKs existing in the environment, operators may fail to be found after it is uninstalled. In this case, you need to reinstall Vision SDK.

Script Uninstallation Procedure

  1. Go to the Vision SDK installation path and check whether you have the execute permission on the uninstall.sh script in the bin directory.
    1
    2
    cd mxVision/bin
    ls -l uninstall.sh
    

    If you do not have the execute permission on the script, run the following command to grant the execute permission on the uninstall.sh script:

    1
    chmod u+x uninstall.sh
    
  2. Run either of the following commands to start the uninstallation:
    1
    ./uninstall.sh
    

    The uninstall.sh script can be used only for normal installation. To rectify installation exceptions, follow Software Package Uninstallation Procedure.

  3. When the uninstallation script is executed, the uninstallation script checks whether any service of Vision SDK is running. If a service of Vision SDK is running, an error message is displayed, the uninstallation is interrupted, and the script returns 255.
    1
    2
    [WARN ][Uninst  ] StreamServer is still running. Uninstallation aborted.
    [INFO ][Uninst  ] Uninstall MindX SDK failed.
    

    In this case, check the running status of the current Vision SDK service: Check the running status of each process. If related processes cannot be stopped due to service reasons, stop the uninstallation process.

    1
    2
    3
    pgrep mxStreammanager | xargs ps -o cmd=-p | grep $(pwd)
    pgrep mxmfCommander | xargs ps -o cmd=-p | grep $(pwd)
    ps -ef | grep "python3 streamserverSourceCode/main.py"
    
    If no running service of Vision SDK is detected, a message is displayed and the uninstallation starts.
    1
    [INFO ][Uninst  ]No service is running. Uninstallation going.
    

    During the uninstallation, the following message may be displayed for some folders:

    1
    rm: cannot remove 'config': Directory not empty
    

    This message is generated because the configuration file is reserved. You can ignore the message.

Software Package Uninstallation Procedure

To uninstall an installed software package, perform the following steps:

  1. Log in to the installation environment as the installation user of the software package.
  2. Go to the directory where the software package is stored.
  3. Run the following commands to uninstall the software package.
    ./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --uninstall
  4. When the uninstallation script is executed, the uninstallation script checks whether any service of Vision SDK is running. If a service of Vision SDK is running, an error message is displayed, the uninstallation is interrupted, and the script returns 255.
    1
    2
    [WARN ][Uninst  ] StreamServer is still running. Uninstallation aborted.
    [INFO ][Uninst  ] Uninstall MindX SDK failed.
    

    In this case, check the running status of the current Vision SDK service: Check the running status of each process. If related processes cannot be stopped due to service reasons, stop the uninstallation process.

    1
    2
    3
    pgrep mxStreammanager | xargs ps -o cmd=-p | grep $(pwd)
    pgrep mxmfCommander | xargs ps -o cmd=-p | grep $(pwd)
    ps -ef | grep "python3 streamserverSourceCode/main.py"
    
    If no running service of Vision SDK is detected, a message is displayed and the uninstallation starts.
    1
    [INFO ][Uninst  ]No service is running. Uninstallation going.
    

    During the uninstallation, the following message may be displayed for some folders:

    1
    rm: cannot remove 'config': Directory not empty
    

    This message is generated because the configuration file is reserved. You can ignore the message.