[英]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.0
, heroku 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.