当我从本地app dir尝试cf push时,我得到以下错误,似乎与python buildpack有关。 错误:
`2016-03-31T21:08:07.00-0400 [STG/185] OUT -----> Downloaded app package (6.7M)
2016-03-31T21:08:07.98-0400 [STG/0] OUT -------> Buildpack version 1.5.1
2016-03-31T21:08:09.86-0400 [STG/0] OUT -----> Installing runtime (requests
2016-03-31T21:08:09.86-0400 [STG/0] OUT python-2.7.9)
2016-03-31T21:08:10.32-0400 [STG/0] OUT ! Resource https://lang-python.s3.amazonaws.com/cedar/runtimes/requests
2016-03-31T21:08:10.32-0400 [STG/0] OUT python-2.7.9.tar.gz is not provided by this buildpack. Please upgrade your buildpack to receive the latest resources.
2016-03-31T21:08:10.33-0400 [STG/0] OUT Staging failed: Buildpack compilation step failed
2016-03-31T21:08:10.33-0400 [STG/0] ERR
2016-03-31T21:08:12.29-0400 [API/3] ERR encountered error: App staging failed in the buildpack compile phase`
这是我的manifest.yml:
applications:
- services:
- dialog-pizza
- nlc_weather
- Retrieve and Rank-p4
path: .
memory: 128M
instances: 1
domain: mybluemix.net
name: jklab
host: jklab
disk_quota: 1024M
buildpack: python_buildpack
这是我的runtime.txt
requests
python-2.7.9
答案 0 :(得分:3)
您的runtime.txt
文件应该只包含您要使用的python版本,您需要从中删除requests
字词:
python-2.7.9
您遇到的错误是因为buildpack正在尝试查找名为requests python-2.7.9
的python版本,但它不存在。