简体   繁体   English

错误加载 Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 在运行期间 docker-compose

[英]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.我在我的机器上运行 Docker Compose 时遇到了这个问题。 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 --version的 output。

ldd (GNU libc) 2.35

Docker itself is functioning as expected. Docker 本身按预期运行。 Docker-compose, however, isn't.然而,Docker-compose 不是。 Trying to docker-compose up or docker-compose --version results in the error.尝试docker-compose updocker-compose --version会导致错误。

install libxcrypt-compat maybe helps安装 libxcrypt-compat 可能会有所帮助

sudo pacman -S libxcrypt-compat

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

I fix this issue by created a symbolic link from libcrypt.so to libcrypt.so.1我通过创建从libcrypt.solibcrypt.so.1的符号链接来解决此问题

Link this: $ ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1链接这个: $ ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1

Hope it's worked for you希望它对你有用

This was my solution: delete directories./build and./dist and run pyinstaller again.这是我的解决方案:删除目录./build 和./dist 并再次运行 pyinstaller。

I noticed that if./build already exists, Pyistaller will reuse the same./build.我注意到如果./build 已经存在,Pyistaller 将重用相同的./build。 Any previous issues in./build will persist, sometimes with new error messages, because the directory was not recreated. ./build 中的任何先前问题都会持续存在,有时还会出现新的错误消息,因为没有重新创建目录。 Deleting./build leads to a new./build being created next time you run pyinstaller.删除 ./build 会在您下次运行 pyinstaller 时创建一个新的 ./build。

This was the original error I was getting.这是我得到的原始错误。

$ ./name_of_executable_created_by_pyinstaller 
[26645] Error loading Python lib '/tmp/_MEITnO6JV/libpython3.7m.so': dlopen: /tmp/_MEITnO6JV/libpython3.7m.so: cannot open shared object file: No such file or directory

I was running on manjaro.我在 manjaro 上跑步。 I had to remove docker-compose, install it back and symlink to it's actual location.我不得不删除 docker-compose,将其安装回去并将符号链接到它的实际位置。 I don't know if this works on other distros.我不知道这是否适用于其他发行版。

sudo rm $(which docker-compose)

Now install it back;现在安装回去;

sudo pacman -S docker-compose

Finally create a symlink;最后创建一个符号链接;

sudo ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose

Confirm it's fine;确认没问题;

docker-compose --version

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 加载 Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0' 时出错:dlopen: /lib/x86_64-linux-gnu/libc.so.6: 找不到版本 'GLIBC_2.28' - Error loading Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found Python3.7:加载共享库时出错:libpython3.7m.so.1.0 - Python3.7: error while loading shared libraries: libpython3.7m.so.1.0 加载共享库 libpython3.7m.so.1.0 时出错:没有这样的文件或目录(/usr/local/bin/coverage 需要) - Error loading shared library libpython3.7m.so.1.0: No such file or directory (needed by /usr/local/bin/coverage) docker-compose “/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0:”时出错 - Error when docker-compose “/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0: ” 加载 Python 库“/tmp/_MEImSAQlR/libpython3.10.so.1.0”时出错 - Error loading Python lib '/tmp/_MEImSAQlR/libpython3.10.so.1.0' 问:python(在集群的bash脚本中使用cutadapt):libpython3.7m.so.1.0:无法打开共享对象文件:无此类文件或目录 - Q: python (using cutadapt in bash script on cluster): libpython3.7m.so.1.0: cannot open shared object file: No such file or directory ImportError:libpython3.7m.so.1.0:无法打开共享 object 文件:没有这样的文件或目录 - ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory 错误加载 Python 库 libpython3.6m.so.1.0 pyinstaller Ubuntu Python - Error loading Python lib libpython3.6m.so.1.0 pyinstaller Ubuntu Python 使用 Docker 和 Python 显示加载 libpython3.8.so.1.0 时出错 - Using Docker with Python shows an error loading libpython3.8.so.1.0 pyinstaller 错误:OSError:找不到 Python 库:libpython3.4mu.so.1.0、libpython3.4m.so.1.0、libpython3.4.so.1.0 - pyinstaller error: OSError: Python library not found: libpython3.4mu.so.1.0, libpython3.4m.so.1.0, libpython3.4.so.1.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM