Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

prom segfaults with psycopg2 2.7.3.1 #54

Closed Jaymon closed 1 year ago

Jaymon commented 6 years ago

Right now, solution is to drop down to an earlier version:

$ pip install psycopg2==2.6.2
Jaymon commented 6 years 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
dvarrazzo commented 6 years ago

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).