Skip to content

psycopg2-binary-2.8.2 libcrypt.so.1: cannot open shared object file #912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
loleg opened this issue May 3, 2019 · 3 comments
Closed

psycopg2-binary-2.8.2 libcrypt.so.1: cannot open shared object file #912

loleg opened this issue May 3, 2019 · 3 comments
Labels
wheel Bugs related to the wheel distribution, not happening installing from source

Comments

@loleg
Copy link

loleg commented May 3, 2019

    import psycopg2
  File "/home/oleg/.local/share/virtualenvs/backend-CqoIE4Q5/lib/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

This error has popped up since upgrading to Fedora 30. I believe it has to do with the deprecation of Glib's libcrypt in favor of https://github.com/besser82/libxcrypt .. but I'm not sure what's going on here, since nowhere is it mentioned in the code or libpqxx.

@loleg
Copy link
Author

loleg commented May 3, 2019

Via https://fedoraproject.org/wiki/Changes/FullyRemoveDeprecatedAndUnsafeFunctionsFromLibcrypt the workaround is to install the libxcrypt-compat system package. However, there are numerous security gotchas related to this, and it would be great if we could figure out where to bump the reference to libcrypt.so.2 as suggested.

@dvarrazzo
Copy link
Member

This is not something we specifically chose to do, but comes from the Python wheel build system and I don't believe it can be changed without creating a new standard

https://www.python.org/dev/peps/pep-0513/
https://www.python.org/dev/peps/pep-0571/

maybe @matthew-brett has more up-to-date info?

@dvarrazzo dvarrazzo added the wheel Bugs related to the wheel distribution, not happening installing from source label May 3, 2019
@dvarrazzo
Copy link
Member

Assuming the problem has been solved by the PyPA folks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wheel Bugs related to the wheel distribution, not happening installing from source
Projects
None yet
Development

No branches or pull requests

2 participants