Skip to content

AWS CDK v2 incompatibility #3096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lsli8888 opened this issue May 6, 2022 · 6 comments
Closed

AWS CDK v2 incompatibility #3096

lsli8888 opened this issue May 6, 2022 · 6 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@lsli8888
Copy link

lsli8888 commented May 6, 2022

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
Copy link
Author

lsli8888 commented May 7, 2022

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

@acere
Copy link

acere commented May 24, 2022

+1

@l3ku
Copy link

l3ku commented May 27, 2022

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?

@navinsoni
Copy link
Contributor

@lsli8888, @l3ku: We have upgraded attrs to 22.1.0 in #3374.
Can you please check if it works for you.

@l3ku
Copy link

l3ku commented Dec 17, 2022

Works for me. Thanks!

@trungleduc trungleduc added the dependencies Pull requests that update a dependency file label Sep 21, 2023
@knikure
Copy link
Contributor

knikure commented Dec 14, 2023

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 knikure closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

6 participants