Ask Your Question
2

When attempting to connect to PostgreSQL using psycopg2 on AWS, why am I receiving an error stating that SCRAM authentication necessitates libpq version 10 or higher?

asked 2022-11-06 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-03-19 23:00:00 +0000

huitzilopochtli gravatar image

This error occurs because SCRAM authentication method for PostgreSQL was introduced in the libpq library in version 10, but the version installed on your AWS instance may be lower than 10. To resolve this issue, you need to upgrade the libpq library to version 10 or higher. You can do this by running the following command on your AWS instance:

sudo apt-get install libpq-dev

After this has been installed, retry connecting to PostgreSQL using psycopg2 and the error should be resolved.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-11-06 11:00:00 +0000

Seen: 15 times

Last updated: Mar 19 '23