Bug 1696459

Summary: psycopg2 fails due to missing libcrypt.so.1
Product: [Fedora] Fedora Reporter: Michael DePaulo <mikedep333>
Component: python-psycopg2Assignee: Devrim Gündüz <devrim>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: devrim, dvalts, hhorak, jmlich83, pkajaba, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-04 21:53:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael DePaulo 2019-04-04 21:37:40 UTC
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

Comment 1 Michael DePaulo 2019-04-04 21:53:17 UTC
Whoops, I just realized that is the PyPi or source installed psycopg2 rather than the RPM-provided version.

Comment 2 Declan V 2019-05-03 10:19:12 UTC
Hi Michael, what was your solution/workaround in the end?

Comment 3 Michael DePaulo 2019-05-03 15:45:19 UTC
Declan V: Either install and use Fedora's psyocpg2 RPM, or install libxcrypt-compat and use the PyPi version or psyocpg2.