'sagemaker.image_uris.retrieve: FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packa
I have an issue while getting xgboost image URI. It is a function for generating ECR image URIs for pre-built SageMaker Docker images.
My code:
region = sagemaker.Session().boto_region_name container=sagemaker.image_uris.retrieve("xgboost", region, "1.2-1")
Output:FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/sagemaker/image_uri_config/xgboost.json'
Solution 1:[1]
Is it feasible to upgrade sagemaker sdk or re-install it. The image_uri retrieval is here and the json files are listed here
You can check locally if you see those files in the site packages folder. example - /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/sagemaker/image_uri_config
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anoop |
