Skip to content

[bug] AWS CLI not working properly in DLC #4268

@bkgardiner

Description

@bkgardiner

Checklist

Concise Description:
The AWS CLI is not working on the 2.1.2-neuronx-py310-sdk2.20.0-ubuntu20.04 image

DLC image/dockerfile:
public.ecr.aws/neuron/pytorch-inference-neuronx:2.1.2-neuronx-py310-sdk2.20.0-ubuntu20.04

Current behavior:
When running aws command the following error appears:
ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' (/opt/conda/lib/python3.10/site-packages/botocore/utils.py)

Expected behavior:
No errors

Additional context:
I've fixed the issue in the container by running:
pip install --upgrade boto3 botocore

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions