Bug 1696459 - psycopg2 fails due to missing libcrypt.so.1
Summary: psycopg2 fails due to missing libcrypt.so.1
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-psycopg2
Version: 30
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Devrim Gündüz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 21:37 UTC by Michael DePaulo
Modified: 2019-05-03 15:45 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-04 21:53:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.