AI Center 20.10.2: Deploying ML Model Fails With Pytest-Runner Error

How to resolve when AI Center 20.10.2 deployment leads to Error - " Deploying ML model fails with Error while creating docker image for image XXXXXX with details ERROR: Command errored out with exit status 1:ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none) ERROR: no matching distribution found for pytest-runner ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command otuput.ERROR: An error Occurred: non-zero(13)" ?

Download the attached tar file. Unzip it and run the setup.py file.

  • tar -xvf patch_pytest_runner_base_image.tar.gz
  • cd patch_pytest_runner_base_image
  • ./setup.py
The patch will need to be run after each new model installation for the instance and after each AI- Deployer reboot (which usually only happens after a machine reboot).