Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: While attempting to use psycopg2 with our application (Pulp 3), we are getting this error due to an undeclared dependency on libcrypt.so.1 It only seems to occur on Fedora 30 (& rawhide) because libxcrypt-compat was split off from the commonly used libxcrypt. File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/db/backends/postgresql/base.py", line 20, in <module> import psycopg2 as Database File "/usr/local/lib/pulp/lib64/python3.7/site-packages/psycopg2/__init__.py", line 50, in <module> from psycopg2._psycopg import ( # noqa ImportError: libcrypt.so.1: cannot open shared object file: No such file or directory
Whoops, I just realized that is the PyPi or source installed psycopg2 rather than the RPM-provided version.
Hi Michael, what was your solution/workaround in the end?
Declan V: Either install and use Fedora's psyocpg2 RPM, or install libxcrypt-compat and use the PyPi version or psyocpg2.