简体   繁体   English

在Python 2.7.13 Heroku dynos上缺少libpython2.7.so.1.0

[英]Missing libpython2.7.so.1.0 on Python 2.7.13 Heroku dynos

We are running our Python 2.7.13 application on Heroku. 我们正在Heroku上运行Python 2.7.13应用程序。

I believe recently Heroku has changed Python runtime defaults from 2.7.13 to 3.6.1 for new application. 我相信最近Heroku已将新应用程序的Python运行时默认值从2.7.13更改为3.6.1。

So we put python-2.7.13 to runtime.txt file as they recommend but now if we create a new Heroku app and deploy out code to it, it complains that libpython2.7.so.1.0 cannot be found. 因此,我们按照他们的建议将python-2.7.13放到runtime.txt文件中,但是现在,如果我们创建一个新的Heroku应用并向其中部署代码,它会抱怨找不到libpython2.7.so.1.0

Heroku log content: Heroku日志内容:

... 2017-06-30T10:56:05.825667+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/googleclouddebugger/capture_collector.py", line 30, in <module> 2017-06-30T10:56:05.825694+00:00 app[web.1]: import cdbg_native as native 2017-06-30T10:56:05.825725+00:00 app[web.1]: ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

We also cannot find libpython2.7.so.1.0 on dynos, heroku run "cd /; find | grep libpython2.7.so.1.0" gives nothing. 我们也无法在libpython2.7.so.1.0上找到libpython2.7.so.1.0heroku run "cd /; find | grep libpython2.7.so.1.0"没有任何结果。

You may refer to the solution presented in the reply to the libpython2.7.so.1.0: cannot open shared object file: No such file or directory . 您可以参考对libpython2.7.so.1.0的答复中提供的解决方案:无法打开共享对象文件:没有这样的文件或目录 1 "Try to find file libpython2.7.so.1.0: locate libpython2.7.so.1.0 In my case, it show out put: /opt/rh/python27/root/usr/lib64/libpython2.7.so.1.0 Then add dir /opt/rh/python27/root/usr/lib64 to file /etc/ld.so.conf And run ldconfig". 1 “尝试查找文件libpython2.7.so.1.0:找到libpython2.7.so.1.0在我的情况下,它显示为: /opt/rh/python27/root/usr/lib64/libpython2.7.so.1.0然后将dir /opt/rh/python27/root/usr/lib64 to file /etc/ld.so.conf并运行ldconfig”。

暂无
暂无

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

相关问题 yum未找到libpython2.7.so.1.0()(64bit) - libpython2.7.so.1.0()(64bit) not found by yum 加载共享库时出错:在ubuntu中制作虚拟环境时,libpython2.7.so.1.0 - error while loading shared libraries: libpython2.7.so.1.0 when making virtual env in ubuntu Docker:libpython2.7.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - Docker: libpython2.7.so.1.0: cannot open shared object file: No such file or directory libpython2.7.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - libpython2.7.so.1.0: cannot open shared object file: No such file or directory 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 OSError: Python library not found: libpython3.9mu.so.1.0, libpython3.9m.so, etc., when running pyinstaller - OSError: Python library not found: libpython3.9mu.so.1.0, libpython3.9m.so, etc., when running pyinstaller 从AIX5.3上的Source构建的Python 2.7无法为libpython2.7.so执行 - Python 2.7 built from Source on AIX5.3 does not execute for libpython2.7.so 如何安装libpython2.7.so - How to install libpython2.7.so 错误加载 Python 库 libpython3.6m.so.1.0 pyinstaller Ubuntu Python - Error loading Python lib libpython3.6m.so.1.0 pyinstaller Ubuntu Python libpython2.7.a缺少许多参考 - libpython2.7.a missing many references
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM