Open HumzahJavid opened 1 month ago
From https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary the binary is only reccomended for development. A better solution could be to make a note of the binary version in the docs for development purposes only.
Warning
The psycopg2 wheel package comes packaged, among the others, with its own libssl binary. This may create conflicts with other extension modules binding with libssl as well, for instance with the Python ssl module: in some cases, under concurrency, the interaction between the two libraries may result in a segfault. In case of doubts you are advised to use a package built from source.
Description of the issue
The install log attached at the bottom of this issue was carried out on a WSL2 instance running ubuntu 22.02 on a windows 10 machine (whilst working on the admin-portal integrations with FIA-API) The
"psycopg2"
package threw the following error. This was resolved by replacing it with a non pinned version of"psycopg2-binary"
Recommendation to replace. See https://github.com/fiaisis/FIA-API/issues/340#issuecomment-2188495107psycopg2
withpsycopg2-binary
in thepyproject.toml
file see stack overflow solution