Thread: PQencryptPasswordConn called using PostgreSQL9.6.

PQencryptPasswordConn called using PostgreSQL9.6.

From
Valentin Czisch
Date:
Hi!

Since PQencryptPasswordConn was added in PostgreSQL10, the following confuses me:

I am using an Azure Database Server with PostgreSQL9.6.16 on Ubuntu. 
During the build of my web app, when the import of the Database is done, I get an ImportError. 

File "/home/site/wwwroot/antenv/lib/python3.7/site-packages/django/db/backends/postgresql/base.py"
import psycopg2 as Database
File "/home/site/wwwroot/antenv/lib/python3.7/site-packages/psycopg2/__init__.py"
from psycopg2._psycopg import ( # noqa
ImportError: /home/site/wwwroot/venv/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PQencryptPasswordConn

Why would the PQencryptPasswordConn-function be missing in PostgreSQL9.6?
Is my installation of psycopg2 flawed? If so, why and how would I fix this?

Hope this is the right place to ask... Thank you for any advice!

Vale.