Skip to content
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

The python runtime has an inflexible dependency on typeguard~=2.13.3 #1186

Closed
MatthewGrant opened this issue Oct 7, 2024 · 5 comments
Closed

Comments

@MatthewGrant
Copy link

MatthewGrant commented Oct 7, 2024

@mrgrain I'm looking for some help. This package specifically aws-cdk.asset-kubectl-v20 is a dependency of aws-cdk-lib for the python runtime. I'm trying to install a package that depends on a higher version of the currently pinned dependency typeguard.

Can the v20 dependencies be bumped and released to include "jsii>=1.103.1, <2.0.0" to get the pacmak updates from this PR. I think aws-cdk-asset-awscli-v1 v2.2.202 had the same issue but is now fixed in higher versions. diff

# requirements.txt - py3.9
aws-cdk-lib==2.161.1
aws-cdk-asset-awscli-v1>2.2.202
typeguard>=4.0
pip install -r requirements.txt

ERROR: Cannot install -r requirements.txt (line 1), aws-cdk-lib and typeguard>=4.0 because these package versions have conflicting dependencies.
The conflict is caused by:
    The user requested typeguard>=4.0
    aws-cdk-lib 2.161.1 depends on typeguard<5.0.0 and >=2.13.3
    aws-cdk-asset-awscli-v1 2.2.203 depends on typeguard<5.0.0 and >=2.13.3
    aws-cdk-asset-kubectl-v20 2.1.2 depends on typeguard~=2.13.3

Please let me know if this isn't the place for this request, my understanding is incorrect, thanks.

@mrgrain
Copy link
Contributor

mrgrain commented Oct 7, 2024

Looking into if we can remove this dependency. Otherwise an upgrade should be possible.

mergify bot pushed a commit that referenced this issue Oct 10, 2024
….1 (#1195)

Fixes #1186

- upgrades projen to latest
- upgrades jsii & typescript to 5.5
- update integ test to use supported python runtimes
- update layer Dockerfile to be compatible with latest `lambda/provided` (use `dnf` instead of `yum`)
@mrgrain
Copy link
Contributor

mrgrain commented Oct 10, 2024

New version is released.

@mrgrain mrgrain closed this as completed Oct 10, 2024
@MatthewGrant
Copy link
Author

Thank you!

@mrgrain
Copy link
Contributor

mrgrain commented Oct 10, 2024

Thank you!

Let me know if that works!

@MatthewGrant
Copy link
Author

MatthewGrant commented Oct 10, 2024

Thank you!

Let me know if that works!

Yes, it worked! however I tagged you in the constructs repo, I'm seeing the same issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants