Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 609
Rashiq Avatar asked Mar 19 '26 20:03

Rashiq


2 Answers

install libxcrypt-compat maybe helps

sudo pacman -S libxcrypt-compat

https://archlinux.org/packages/core/x86_64/libxcrypt-compat

like image 100
Gary Liu Avatar answered Mar 21 '26 10:03

Gary Liu


I had the same issue in my EC2 instance and I solved it by running this command

sudo dnf install libxcrypt-compat

This command should be run under root user for it to work.

like image 37
Davidelvis Avatar answered Mar 21 '26 08:03

Davidelvis