gpt4 book ai didi

python - 将 python 应用程序推送到 bluemix 时出错

转载 作者:行者123 更新时间:2023-11-30 22:58:03 24 4
gpt4 key购买 nike

当我尝试从本地应用程序目录进行 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`

这是我的 list .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

最佳答案

您的 runtime.txt 文件应该只包含您要使用的 python 版本,并且您需要从中删除 requests 单词:

python-2.7.9

您遇到的错误是因为 buildpack 正在尝试查找名为 requests python-2.7.9 的 python 版本,但它不存在。

关于python - 将 python 应用程序推送到 bluemix 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36364695/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com