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

cdk synth and pytest errors from cdk init sample-app —language python #5565

Closed
scheung38 opened this issue Dec 27, 2019 · 0 comments · Fixed by #5693
Closed

cdk synth and pytest errors from cdk init sample-app —language python #5565

scheung38 opened this issue Dec 27, 2019 · 0 comments · Fixed by #5693
Assignees
Labels
bug This issue is a bug. in-progress This issue is being actively worked on. language/python Related to Python bindings p2 package/tools Related to AWS CDK Tools or CLI

Comments

@scheung38
Copy link

Mkdir samplePython and cd into it

cdk init —sample-app —language python

Error Log

Pytest:

ModuleNotFound : No module named ‘hello’

cdk synth:

jsii.errors.JavascriptError:

Error: Stack name must match the regular expression, got sample_python

But if I start a new project with empty directory sample-app then Python doesn’t like hypens?

So I need to start in empty folder called sample-app and then manually change the hyphens into something Python can interpret?

Environment

  • **CLI Version : 1.16.289
  • **Framework Version: 1.19.0
  • **OS : Mac OS
  • **Language : python 3.7.5

This is 🐛 Bug Report

@scheung38 scheung38 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 27, 2019
@SomayaB SomayaB added language/python Related to Python bindings package/tools Related to AWS CDK Tools or CLI labels Dec 30, 2019
@NGL321 NGL321 removed the needs-triage This issue or PR still needs to be triaged. label Jan 2, 2020
@NGL321 NGL321 assigned shivlaks and unassigned NGL321 Jan 2, 2020
@SomayaB SomayaB added the in-progress This issue is being actively worked on. label Jan 7, 2020
@shivlaks shivlaks added the p2 label Jan 8, 2020
@mergify mergify bot closed this as completed in #5693 Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. in-progress This issue is being actively worked on. language/python Related to Python bindings p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants