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

RuntimeError: Cannot find module 'lodash' (Python) #62

Open
ghost opened this issue Jun 9, 2023 · 0 comments
Open

RuntimeError: Cannot find module 'lodash' (Python) #62

ghost opened this issue Jun 9, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2023

Hello.

Issue:
When trying to import aws_amplify.cdk.exported_backend package (pip) into cdk project (Python) there is an error:

RuntimeError: Cannot find module 'lodash'
Require stack:
- /private/var/folders/d8/xplnxkfn46d_5wcmx25crr540000gn/T/jsii-kernel-rOvfLj/node_modules/@aws-amplify/cdk-exported-backend/lib/export-backend-asset-handler/index.js
- /private/var/folders/d8/xplnxkfn46d_5wcmx25crr540000gn/T/jsii-kernel-rOvfLj/node_modules/@aws-amplify/cdk-exported-backend/lib/export-backend.js
- /private/var/folders/d8/xplnxkfn46d_5wcmx25crr540000gn/T/jsii-kernel-rOvfLj/node_modules/@aws-amplify/cdk-exported-backend/lib/index.js
- /var/folders/d8/xplnxkfn46d_5wcmx25crr540000gn/T/jsii-kernel-rOvfLj

Prerequisites:

  • Python 3.10
  • aws-cdk-lib==2.83.0
  • cdk export library version: 0.0.6
  • Project: empty cdk project created with:
cdk init app --language python

Workaround:

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

0 participants