Ibm cloud Cloudfoundry:找不到python==3.5.0的匹配发行版

Ibm cloud Cloudfoundry:找不到python==3.5.0的匹配发行版,ibm-cloud,python-3.5,cloud-foundry,Ibm Cloud,Python 3.5,Cloud Foundry,我正试图通过clodfoundry在IBMBlueMix云上部署python应用程序。构建包编译失败。日志 2016-04-08T09:23:04.732-0400[API/1]更新后的应用程序,guid为4823889e-5491-40a3-a8ce-35b8dd325441({“状态”=>“已停止”}) 2016-04-08T09:23:07.713-0400[DEA/4]id为4823889e-5491-40a3-a8ce-35b8dd325441的应用程序的退出暂存请求 2016-04

我正试图通过clodfoundry在IBMBlueMix云上部署python应用程序。构建包编译失败。日志


2016-04-08T09:23:04.732-0400[API/1]更新后的应用程序,guid为4823889e-5491-40a3-a8ce-35b8dd325441({“状态”=>“已停止”})
2016-04-08T09:23:07.713-0400[DEA/4]id为4823889e-5491-40a3-a8ce-35b8dd325441的应用程序的退出暂存请求
2016-04-08T09:23:11.178-0400[API/0]更新后的应用程序,guid为4823889e-5491-40a3-a8ce-35b8dd325441({“状态”=>“已启动”})
2016-04-08T09:23:11.376-0400[STG/4]输出------>下载的应用程序包(72K)
2016-04-08T09:23:12.762-0400[STG/4]输出------>下载的应用程序构建包缓存(29M)
2016-04-08T09:23:12.901-0400[STG/0]错误克隆到“/tmp/buildpacks/buildpack python”。。。
2016-04-08T09:23:14.625-0400[STG/0]输出子模块“编译扩展”(https://github.com/cloudfoundry/compile-extensions.git)已注册路径“编译扩展”
2016-04-08T09:23:14.679-0400[STG/0]错误克隆到“编译扩展名”。。。
2016-04-08T09:23:15.534-0400[STG/0]输出子模块路径“编译扩展”:签出“9932bb1d352b88883d76df41e797a6fa556844f0”
2016-04-08T09:23:15.782-0400[STG/0]输出------->构建包版本1.5.5
2016-04-08T09:23:16.785-0400[STG/0]OUT----->找到python-2.7.10,正在删除
2016-04-08T09:23:17.035-0400[STG/0]输出------>安装python-3.5.0
2016-04-08T09:23:21.330-0400[STG/0]下载完毕[https://pivotal-buildpacks.s3.amazonaws.com/concourse-binaries/python/python-3.5.0-linux-x64.tgz]
2016-04-08T09:23:27.161-0400[STG/0]退出!请删除以确保预期的行为。
2016-04-08T09:23:27.161-0400[STG/0]退出!软件包setuptools/distribute在requirements.txt中列出。
2016-04-08T09:23:29.058-0400[STG/0]OUT$pip安装-r requirements.txt
2016-04-08T09:23:29.728-0400[STG/0]错误弃用:--允许所有外部已弃用,将在将来删除。由于存储库协议的更改,它不再具有任何效果。
2016-04-08T09:23:29.757-0400[STG/0]输出收集django==1.9.5(来自-r mysite/requirements.txt(第1行))
2016-04-08T09:23:30.078-0400[STG/0]下载Django-1.9.5-py2.py3-none-any.whl(6.6MB)
2016-04-08T09:23:32.696-0400[STG/0]输出收集DOCOP==0.6.2(来自-r mysite/requirements.txt(第2行))
2016-04-08T09:23:32.758-0400[STG/0]OUT下载docopt-0.6.2.tar.gz
2016-04-08T09:23:33.446-0400[STG/0]OUT Collection elasticsearch==2.3.0(来自-r mysite/requirements.txt(第3行))
2016-04-08T09:23:33.525-0400[STG/0]下载elasticsearch-2.3.0-py2.py3-none-any.whl(51kB)
2016-04-08T09:23:33.552-0400[STG/0]输出采集HDF==2.0.5(来自-r mysite/requirements.txt(第4行))
2016-04-08T09:23:33.631-0400[STG/0]下载hdfs-2.0.5.tar.gz
2016-04-08T09:23:34.330-0400[STG/0]输出收集python==3.5.0(来自-r mysite/requirements.txt(第6行))
2016-04-08T09:23:34.364-0400[STG/0]错误找不到满足python==3.5.0要求的版本(来自-r mysite/requirements.txt(第6行))(来自版本:)
2016-04-08T09:23:34.962-0400[STG/0]找不到python==3.5.0的匹配分布(来自-r mysite/requirements.txt(第6行))
2016-04-08T09:23:35.249-0400[STG/0]未到期失败:构建包编译步骤失败
2016-04-08T09:23:35.468-0400[API/0]错误遇到错误:在buildpack编译阶段,应用程序暂存失败

我的要求

django==1.9.5 docopt==0.6.2 elasticsearch==2.3.0
hdfs==2.0.5
pip==8.1.1
python==3.5.0
请求==2.9.1
setuptools==20.3
simplejson==3.8.2
六==1.10.0
urllib3==1.14
vs2015_运行时==14.00.23026.0
车轮==0.29.0

我执行的命令

cf push pytest-bhttps://github.com/cloudfoundry/buildpack-python.git

我应该如何部署它

编辑

我将python版本更改为2.7.10,并删除了
vs2015运行时==14.00.23026.0
要求。现在我明白了

$ python mysite/manage.py collectstatic --noinput
       Traceback (most recent call last):
         File "mysite/manage.py", line 10, in <module>
           execute_from_command_line(sys.argv)
         File "/app/.heroku/python/lib/python2.7/site-packages/django/core/manag
ement/__init__.py", line 354, in execute_from_command_line
           utility.execute()
         File "/app/.heroku/python/lib/python2.7/site-packages/django/core/manag
ement/__init__.py", line 346, in execute
           self.fetch_command(subcommand).run_from_argv(self.argv)
         File "/app/.heroku/python/lib/python2.7/site-packages/django/core/manag
ement/__init__.py", line 190, in fetch_command
           klass = load_command_class(app_name, subcommand)
         File "/app/.heroku/python/lib/python2.7/site-packages/django/core/manag
ement/__init__.py", line 41, in load_command_class
           return module.Command()
         File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/st
aticfiles/management/commands/collectstatic.py", line 32, in __init__
           self.storage.path('')
         File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/st
aticfiles/storage.py", line 48, in path
           raise ImproperlyConfigured("You're using the staticfiles app "
       django.core.exceptions.ImproperlyConfigured: You're using the staticfiles
 app without having set the STATIC_ROOT setting to a filesystem path.
 !     Error while running '$ python mysite/manage.py collectstatic --noinput'.
       See traceback above for details.
       You may need to update application code to resolve this error.
       Or, you can disable collectstatic for this application:
          $ heroku config:set DISABLE_COLLECTSTATIC=1
       https://devcenter.heroku.com/articles/django-assets
Staging failed: Buildpack compilation step failed
我做错了什么

更新

非常感谢霍伯特·布什的帮助。我按照你的建议做了,现在我就快到了。问题是现在django找不到我的一些静态文件。我有一段代码,比如

hdfsProps = ReadProp.load_properties("hdfsStats/props/hdfsprops.prop") 
这是布局图

所以我想读这两个道具文件。请注意,这在我的本地pc中非常有效。即使我没有在“static”中创建
hdfsStas/props/
结构


我应该如何更改布局,以便我的代码可以拾取这些文件?我甚至尝试了
。/../props/hdfsprops.prop
,但这给了我同样的错误。最后,文件中读取的代码在
src
包中

请还原到Python运行时2.7.10,因为这是目前使用Bluemix Python Buildpack支持的最高运行时级别。

谢谢,我将其更改为2.7.10,但现在我发现vs2015 runtime==14.00.23026.0的
没有找到匹配的发行版
@AbtPst我知道,您能提供cf日志的输出吗?最近?@AbtPst感谢您添加日志。试试:
STATIC\u ROOT=os.path.join(BASE\u DIR,'STATIC')
我删除了“/”,顺便说一下,我找到了一种方法让它与python 3.5.1一起工作,我们所要做的就是从需求文件中删除
python==3.5.1
。在运行时提到这一点就足够了。然后cf推送就像一个魅力:)@AbtPst感谢您让我知道并跟进。我将编辑我的答案,将其也包括在内
hdfsProps = ReadProp.load_properties("hdfsStats/props/hdfsprops.prop")