Skip to content

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

Description

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions