Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Bluemix flask应用程序不再构建_Python_Flask_Ibm Cloud - Fatal编程技术网

Python Bluemix flask应用程序不再构建

Python Bluemix flask应用程序不再构建,python,flask,ibm-cloud,Python,Flask,Ibm Cloud,我在bluemix上有一个烧瓶应用程序。它工作得很好。我在一个htmls中更改了一些文本(不应该与之有任何关系) 有一段时间没有检查它,但似乎它突然无法构建(重新启动后停止) 日志: 2016-05-09T12:46:48.314+0200[API/1]OUTUpdated app with guid 4ff2a7a5-9b2f-41c4-85db-282b44ad6e3e ({"state"=>"STOPPED"}) 2016-05-09T12:46:50.535+0200[DEA/20

我在bluemix上有一个烧瓶应用程序。它工作得很好。我在一个htmls中更改了一些文本(不应该与之有任何关系)

有一段时间没有检查它,但似乎它突然无法构建(重新启动后停止)

日志:

2016-05-09T12:46:48.314+0200[API/1]OUTUpdated app with guid 4ff2a7a5-9b2f-41c4-85db-282b44ad6e3e ({"state"=>"STOPPED"})
2016-05-09T12:46:50.535+0200[DEA/209]OUTGot staging request for app with id 4ff2a7a5-9b2f-41c4-85db-282b44ad6e3e
2016-05-09T12:46:57.612+0200[API/6]OUTUpdated app with guid 4ff2a7a5-9b2f-41c4-85db-282b44ad6e3e ({"state"=>"STARTED"})
2016-05-09T12:46:57.788+0200[STG/209]OUT-----> Downloaded app package (372K)
2016-05-09T12:47:00.352+0200[STG/209]OUT-----> Downloaded app buildpack cache (54M)
2016-05-09T12:47:01.138+0200[STG/0]OUT-------> Buildpack version 1.5.2
2016-05-09T12:47:10.018+0200[STG/0]OUT-----> Installing dependencies with pip
2016-05-09T12:47:10.424+0200[STG/0]OUT Collecting setuptools>=18.5 (from ipython->pandas-highcharts==0.5.2->-r requirements.txt (line 5))
2016-05-09T12:47:11.027+0200[STG/0]OUT Downloading setuptools-21.0.0-py2.py3-none-any.whl (509kB)
2016-05-09T12:47:11.160+0200[STG/0]OUT Found existing installation: setuptools 18.3.2
2016-05-09T12:47:11.160+0200[STG/0]OUT Installing collected packages: setuptools
2016-05-09T12:47:11.162+0200[STG/0]OUT Uninstalling setuptools-18.3.2:
2016-05-09T12:47:11.181+0200[STG/0]OUT Successfully uninstalled setuptools-18.3.2
2016-05-09T12:47:11.429+0200[STG/0]OUT Successfully installed setuptools
(从这里它们是红色的)


看来问题是

pandas-highcharts==0.5.2
在需求文件中

它似乎与安装setuptools-21.0.0依赖项有关。因此,setuptools-18.3.2被卸载并删除,如日志中所示:

2016-05-09T12:47:10.424+0200[STG/0]输出
采集设置工具>=18.5(来自ipython->pandas highcharts==0.5.2->-r requirements.txt(第5行))

2016-05-09T12:47:11.162+0200[STG/0]OUT
卸载setuptools-18.3.2:

2016-05-09T12:47:11.181+0200[STG/0]OUT
已成功卸载setuptools-18.3.2

稍后,由于找不到setuptools-18.3.2,生成操作失败

2016-05-09T12:47:11.448+0200[STG/0]ERROSError:[Errno 2]
没有这样的文件或目录:'/app/.heroku/python/lib/python2.7/site packages/setuptools-18.3.2-py2.7.egg'

2016-05-09T12:47:11.498+0200[STG/0]OUTStaging failed: Buildpack compilation step failed
2016-05-09T12:47:11.677+0200[API/6]ERRencountered error: App staging failed in the buildpack compile phase
在查看了Github上的相关源代码后,我不知道具体是哪里导致了问题

我采用的解决方案是将其移除。取而代之的是,我在情节上使用了其他东西


(如果有人知道原因,我们可以对其进行编辑以包括原因。了解原因可能有助于将来的使用)。

是否可以尝试使用
-b部署应用程序https://github.com/cloudfoundry/python-buildpack.git#v1.5.1
我也犯了同样的错误。我做的唯一一件事就是添加需求。在问题@jgawor中添加了这一点
pandas-highcharts==0.5.2
2016-05-09T12:47:11.027+0200[STG/0]OUT Downloading setuptools-21.0.0-py2.py3-none-any.whl (509kB)

2016-05-09T12:47:11.160+0200[STG/0]OUT Found existing installation: setup tools 18.3.2

2016-05-09T12:47:11.160+0200[STG/0]OUT Installing collected packages: setup tools
2016-05-09T12:47:11.498+0200[STG/0]OUTStaging failed: Buildpack compilation step failed
2016-05-09T12:47:11.677+0200[API/6]ERRencountered error: App staging failed in the buildpack compile phase