AWS Lambda with psycopg2 (compiled with PostgreSQL 13.4) #1412
Replies: 2 comments 3 replies
-
This is not a project we maintain. The author never got in touch with us. I have no interest in investigating into it. |
Beta Was this translation helpful? Give feedback.
-
OK. No problem. I was thinking it was something between psycopg2 and new versions of PostgreSQL with static_libpq in the setup.cfg for psycopg2. FYI - If change static_libpq =0 then it works with PostgereSQL 13.4. This is has nothing to do with Lambda at this point. This is compiling the 3 things from source (Python, psycopg2, and PostgreSQL). I get this error on the local server I am compiling it and running Python on. So to recap (nothing running on Lambda) - all local on a server: psycopg2-2.9.3/setup.cfg Does work psycopg2-2.9.3/setup.cfg Does work psycopg2-2.9.3/setup.cfg |
Beta Was this translation helpful? Give feedback.
-
I am basically trying to do the following for AWS Lambda for psycopg2.
https://github.com/jkehler/awslambda-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:
Beta Was this translation helpful? Give feedback.
All reactions