question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python dependency libraries are set to latest

See original GitHub issue

Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository’s issues are intended for feature requests and bug reports.

  • I’m submitting a …

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • What is the current behavior? If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce Following requirements set

aws-cdk.core==1.0.0
aws-cdk.aws_ec2==1.0.0
aws-cdk.aws_eks==1.0.0
aws-cdk.aws_autoscaling==1.0.0
aws-cdk.aws_elasticloadbalancing==1.0.0
aws-cdk.aws_dynamodb==1.0.0
aws-cdk.aws_lambda==1.0.0
aws-cdk.aws_iam==1.0.0
aws-cdk.aws_apigateway==1.0.0

installs

aws-cdk.assets                     1.2.0     
aws-cdk.aws-apigateway             1.0.0     
aws-cdk.aws-applicationautoscaling 1.2.0     
aws-cdk.aws-autoscaling            1.0.0     
aws-cdk.aws-autoscaling-common     1.2.0     
aws-cdk.aws-certificatemanager     1.2.0     
aws-cdk.aws-cloudformation         1.2.0     
aws-cdk.aws-cloudwatch             1.2.0     
aws-cdk.aws-dynamodb               1.0.0     
aws-cdk.aws-ec2                    1.0.0     
aws-cdk.aws-eks                    1.0.0     
aws-cdk.aws-elasticloadbalancing   1.0.0     
aws-cdk.aws-elasticloadbalancingv2 1.2.0     
aws-cdk.aws-events                 1.2.0     
aws-cdk.aws-iam                    1.0.0     
aws-cdk.aws-kms                    1.2.0     
aws-cdk.aws-lambda                 1.0.0     
aws-cdk.aws-logs                   1.2.0     
aws-cdk.aws-route53                1.2.0     
aws-cdk.aws-s3                     1.2.0     
aws-cdk.aws-s3-assets              1.2.0     
aws-cdk.aws-sns                    1.2.0     
aws-cdk.aws-sqs                    1.2.0     
aws-cdk.aws-ssm                    1.0.0     
aws-cdk.core                       1.0.0     
aws-cdk.cx-api                     1.2.0     
aws-cdk.region-info                1.2.0  

Transitive dependencies are always resolved to latest which leads to errors - this one, for instance:

(.env) [eba@INV-7947 eks]$ cdk ls
Traceback (most recent call last):
  File "app.py", line 3, in <module>
    from aws_cdk import (
  File "/home/eba/work/cfconfig/contrib/cloudformation/cdk/eks/.env/lib/python3.7/site-packages/aws_cdk/aws_ec2/__init__.py", line 14, in <module>
    import aws_cdk.aws_ssm
  File "/home/eba/work/cfconfig/contrib/cloudformation/cdk/eks/.env/lib/python3.7/site-packages/aws_cdk/aws_ssm/__init__.py", line 16, in <module>
    class CfnAssociation(aws_cdk.core.CfnResource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-ssm.CfnAssociation"):
  File "/home/eba/work/cfconfig/contrib/cloudformation/cdk/eks/.env/lib/python3.7/site-packages/aws_cdk/aws_ssm/__init__.py", line 228, in CfnAssociation
    @jsii.data_type(jsii_type="@aws-cdk/aws-ssm.CfnAssociation.InstanceAssociationOutputLocationProperty", jsii_struct_bases=[])
TypeError: data_type() missing 1 required keyword-only argument: 'name_mapping'
  • What is the expected behavior (or behavior of feature suggested)? Libraries install their dependencies with the same version.

  • What is the motivation / use case for changing the behavior or adding this feature? Whole library set becomes unstable and does not work.

  • Please tell us about your environment:

    • CDK CLI Version: 1.0.0
    • Module Version: 1.0.0
    • OS: [all]
    • Language: [Python]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lkonieczcommented, Jan 21, 2020

@henrist Thanks, this explains the reason why I still see the problem.

0reactions
MrArnoldPalmercommented, Jan 25, 2020

Closing this fixed/dupe.

See #676 and https://github.com/aws/jsii/pull/1141.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Dependencies - Everything You Need to Know
Click to learn everything about Python dependencies - from managing and adding, to packaging, checking or downloading. Here's all you need!
Read more >
Managing Application Dependencies
The Pipfile is used to track which dependencies your project needs in case you need to re-install them, such as when you share...
Read more >
Specifying Dependencies — Python Packaging Tutorial
Fortunately, setuptools makes it easy for us to specify those dependencies (assuming they are packaged correctly) and automatically install them when our ...
Read more >
How to include library dependencies with a python project?
Is there any way I can include all the libraries that my project uses with my Python files (or perhaps set up an...
Read more >
Best Practices for Python Dependency Management - Medium
You can also use a PyPI server to encourage consistent builds and reduce version conflicts by limiting the ability to add new libraries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found