Closed Jaymon closed 1 year ago
Warning Because the psycopg wheel package uses its own libssl binary, it is incompatible with other extension modules binding with libssl as well, for instance the Python ssl module: the result will likely be a segfault. If you need using both psycopg2 and other libraries using libssl please install psycopg from source. (via)
Relevant issue from psycopg2 repo, not sure why the issue is closed since this seems to be an ongoing problem.
Anyway, the way to get around this is to build psycopg2 from source, this will keep it from using its own bundled libssl:
$ pip install --no-binary=:all: psycopg2
FYI: you are right that closing the psycopg/psycopg2#543 is not the correct course of action: I will reopen it (I considered it closed as "impossible to fix" and with a documented workaround, but it better stay open).
Right now, solution is to drop down to an earlier version: