-
Notifications
You must be signed in to change notification settings - Fork 365
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
AWS Lambda with psycopg2 (compiled with PostgreSQL 13.4) #69
Comments
I'm experiencing the same issue with
|
Any updates for this? |
I also am getting the above error message. Trying to compile Psycopg2 on Amazon Linux 2 with the versions: PosgreSQL 13.7 Things I've tried:
Same errors each time. |
I managed to go with the command:
Then I copy everything from package directory and place it at level of my lambda code. So I get at top level of lambda directories psycopg2 and psycopg2.binaries.lib, packed as zip and upload it. Looks like it is easier than use this project. |
I am basically trying to do the following for AWS Lambda for psycopg2.
I am trying with the following source code bases and I get the error below.
Python 3.8.1
Psycopg2 2.9.3
PostgreSQL 13.4
psycopg2 setup.cfg config file
psycopg2-2.9.3/setup.cfg
pg_config =
static_libpq = 1
libraries = ssl crypto
However, when I try with PostgreSQL 11.14 it works.
Python 3.8.1
Psycopg2 2.9.3
PostgreSQL 11.14
I also tried with PostgreSQL 12.9 and I get the same error.
Of the web sites I found with this process, all the database versions were PostgreSQL 11 or lower.
Did something change in 12 and above to cause this issue with psycopg2?
Any help/pointers would be appreciated.
Error Message:
The text was updated successfully, but these errors were encountered: