'Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 during running docker-compose
I am having this problem running Docker Compose on my machines. I have switched machines and the problem still persists.
Error Message:
[40335] Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory
My OS is fully updated.
I have tried the solutions listed here, here and here.
Here is the output of ldd --version.
ldd (GNU libc) 2.35
Docker itself is functioning as expected. Docker-compose, however, isn't. Trying to docker-compose up or docker-compose --version results in the error.
Solution 1:[1]
install libxcrypt-compat maybe helps
sudo pacman -S libxcrypt-compat
Solution 2:[2]
I fix this issue by created a symbolic link from libcrypt.so to libcrypt.so.1
Link this: $ ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1
Hope it's worked for you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gary Liu |
| Solution 2 | Sime |
