sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

AWS CDK v2 incompatibility

Open lsli8888 opened this issue 3 years ago • 3 comments

pip is failing for me due to conflicts between sagemaker and aws-cdk-lib, both of which are dependencies in my project. Specifically, it's due to the attrs dependency. Pip spits out the following error noting the conflict:

The conflict is caused by: sagemaker 2.88.3 depends on attrs==20.3.0 jsii 1.57.0 depends on attrs~=21.2 aws-cdk-lib depends on jsii >= 1.57.0, < 2.0.0. jsii in turn depends on attrs ~= 21.2. The problem is that sagemaker has a hard dependency on attrs version 20.3.0. Is this a hard dependency, or can you modify the dependency to be something like attrs>=20.3.0?

lsli8888 avatar May 06 '22 15:05 lsli8888

I had to downgrade to sagemaker 2.75.1 to make it work.

lsli8888 avatar May 07 '22 04:05 lsli8888

+1

acere avatar May 24 '22 02:05 acere

I am also experiencing the same issue, had to downgrade to sagemaker 2.75.1. Would love to use more recently added features so I'm also wondering whether the hard dependency on attrs==20.3.0 is required?

l3ku avatar May 27 '22 11:05 l3ku

@lsli8888, @l3ku: We have upgraded attrs to 22.1.0 in https://github.com/aws/sagemaker-python-sdk/pull/3374. Can you please check if it works for you.

navinsoni avatar Dec 16 '22 22:12 navinsoni

Works for me. Thanks!

l3ku avatar Dec 17 '22 08:12 l3ku

We have provided the fix for this dependency issue in sagemaker>=v2.111.0. Please feel free to open this issue if there are any concerns.

knikure avatar Dec 14 '23 14:12 knikure