In Aria Automation version 8.17.0 and later, users may encounter an issue when attempting to deploy virtual machines using a Python library within Aria Automation. The error message displayed is:
ERROR: Could not find a version that satisfies the requirement "library name"=="x.x.x" (from versions: none)
ERROR: No matching distribution found for "library name"=="x.x.x"
Aria Automation 8.17
To resolve the issue, follow these steps:
Access the vCO Pod:
Run the following command in VRA:
kubectl -n prelude exec -it $(kubectl get pod -n prelude -l app=vco-app -o jsonpath="{.items[0].metadata.name}") -c vco-polyglot-runner -- bash
Run Docker Command:
Execute the Docker command to start a container with the appropriate Python runtime:
docker run --rm -it --entrypoint /bin/bash --network host vmware/vco-polyglot-python:3.10.11
Update Repository URL:
Modify the repository URL in your environment configuration to point to your third-party repository.
https://'ThirdPartyRepoURL'/repository/pypi-common-hosted/simple/ --trusted-host 'ThirdPartyRepoURL
' --extra-index-url https://pypi.org/simple/
Note: Ensure that you replace 'ThirdPartyRepoURL' with the actual URL provided by your third-party repository.