aws-cdk-lib 2.41.0: throws aws-cdk-lib.cx_api.CloudAssembly error
See original GitHub issueDescribe the bug
When running cdk synth in my project I’m getting an error:

Expected Behavior
cdk synth works correctly
Current Behavior
ValueError: Unknown type: aws-cdk-lib.cx_api.CloudAssembly is thrown.
Reproduction Steps
Build any generic CDK project with listed dependencies below and run cdk synth.
Possible Solution
Workaround: downgrade pip install aws-cdk-lib==2.35.0 fixed the issue.
Additional Information/Context
No response
CDK CLI Version
2.41.0
Framework Version
No response
Node.js Version
14.20.0
OS
WSL2 on Windows 10
Language
Python
Language Version
No response
Other information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
aws-cdk-lib module - AWS Documentation
Error Handling: whether errors thrown by handler code are automatically trapped and a FAILED response is submitted to CloudFormation. If this is "Manual", ......
Read more >Argument of type 'this' is not assignable to parameter of type ...
ts file, I'm getting an error when passing this as parameter into CDK methods. Here's what my file looks like: import * as...
Read more >software.amazon.awscdk » aws-cdk-lib - Maven Repository
Version Vulnerabilities Repository Usages Date
2.56.x 2.56.1 Central 0 Dec 23, 2022
2.56.0 2.56.x Central 0 Dec 21, 2022
2.55.x 2.56.x 2.55.1 Central 1 Dec 16,...
Read more >@aws-cdk/cloud-assembly-schema: Versions | Openbase
autoscaling: error not thrown when associatePublicIpAddress is set to ... /packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts#L138 ... cxapi: of behavior.
Read more >software.amazon.awscdk : aws-cdk-lib : 2.8.0 - Maven Central
undefined:undefined - Version 2 of the AWS Cloud Development Kit library.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@marcin2x4 I just tried this on a new project created with
cdk init --language=python appand I didn’t receive any error.Can you provide a reproducible example?
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.