Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

CHANDRA SHEKHAR GOKA chandra-goka

🏠
Working from home
View GitHub Profile
@gene1wood
gene1wood / aws-lambda-relative-import-no-known-parent-package.md
Last active May 12, 2022
Python relative imports in AWS Lambda fail with `attempted relative import with no known parent package`
View aws-lambda-relative-import-no-known-parent-package.md

Python relative imports in AWS Lambda fail with attempted relative import with no known parent package

The Problem

In AWS Lambda if I attempt an explicit relative import like this

.
├── lambda_file.py
└── example.py