aws / aws/aws-lambda-builders

Support Postgress Adaptor "psycopg2" in python_pip workflow

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
area/workflow/python_pip maintainer/need-response
Dominant language
Python
Stars
380
Forks
161
Avg merge
1d 1h
Merged PRs (30d)
2

Description

**Description:**
Customers using Postgress with Lamnbda in Python run into the problem where this library does not load in AWS Lambda. This is a build time problem and not a runtime one. AWS Lambda does not include necessary `libpq.so` file required by Postgress in the runtime. So people have to compile & statically link this library.

See: https://github.com/jkehler/awslambda-psycopg2
More: https://stackoverflow.com/questions/44855531/no-module-named-psycopg2-psycopg-modulenotfounderror-in-aws-lambda

**Steps to reproduce the issue:**
1.
2.
3.

**Observed result:**

**Expected result:**

**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.