Date
1 - 4 of 4
Python buildpack failed to work on CF 210
王小锋 <zzuwxf at gmail.com...>
Hi, there
I upgraded CloudFoundry to verion 210 from 205 last week, today when I push a "hello world" python project (works before) to CF using command below: cf push python11 -p python-sample.zip -b https://github.com/cloudfoundry/python-buildpack it failed with followoing error, seems pre-comipled package does not work on latest stack cflinuxfs2, any ideas? BTW, when I push python project using cached python buildpack 1.3.1 with old stack lucid64, it worked. 2015-07-10T03:27:05.72+0000 [DEA] OUT Got staging request for app with id 04900427-41c0-48c4-9cae-e904b9b6caa4 2015-07-10T03:27:06.69+0000 [STG] OUT -----> Downloaded app package (4.0K) 2015-07-10T03:27:06.76+0000 [STG] ERR Cloning into '/tmp/buildpacks/python-buildpack'... 2015-07-10T03:27:13.58+0000 [STG] OUT Submodule 'compile-extensions' ( https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' 2015-07-10T03:27:13.62+0000 [STG] ERR Cloning into 'compile-extensions'... 2015-07-10T03:27:16.67+0000 [STG] OUT Submodule path 'compile-extensions': checked out 'f752ecf4b27d2f31bb082dfe7a47c76fefc769d7' 2015-07-10T03:27:16.79+0000 [STG] OUT -------> Buildpack version 1.4.0 2015-07-10T03:27:16.83+0000 [STG] OUT -----> Installing runtime (python-2.7.6) 2015-07-10T03:27:31.22+0000 [STG] OUT -----> Installing dependencies with pip 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash md5 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type md5 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash sha1 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type sha1 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash sha224 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type sha224 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash sha256 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type sha256 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash sha384 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type sha384 2015-07-10T03:27:31.27+0000 [STG] ERR ERROR:root:code for hash sha512 was not found. 2015-07-10T03:27:31.27+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 2015-07-10T03:27:31.27+0000 [STG] ERR globals()[__func_name] = __get_hash(__func_name) 2015-07-10T03:27:31.27+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 2015-07-10T03:27:31.27+0000 [STG] ERR raise ValueError('unsupported hash type ' + name) 2015-07-10T03:27:31.27+0000 [STG] ERR ValueError: unsupported hash type sha512 2015-07-10T03:27:31.37+0000 [STG] ERR Traceback (most recent call last): 2015-07-10T03:27:31.37+0000 [STG] ERR File "/app/.heroku/python/bin/pip", line 9, in <module> 2015-07-10T03:27:31.37+0000 [STG] ERR load_entry_point('pip==7.0.1', 'console_scripts', 'pip')() 2015-07-10T03:27:31.37+0000 [STG] ERR File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 552, in load_entry_point 2015-07-10T03:27:31.37+0000 [STG] ERR File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2672, in load_entry_point 2015-07-10T03:27:31.37+0000 [STG] ERR File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2345, in load 2015-07-10T03:27:31.37+0000 [STG] ERR File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2351, in resolve 2015-07-10T03:27:31.37+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/__init__.py", line 15, in <module> 2015-07-10T03:27:31.37+0000 [STG] ERR from pip.vcs import git, mercurial, subversion, bazaar # noqa 2015-07-10T03:27:31.37+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/vcs/mercurial.py", line 10, in <module> 2015-07-10T03:27:31.37+0000 [STG] ERR from pip.download import path_to_url 2015-07-10T03:27:31.37+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/download.py", line 38, in <module> 2015-07-10T03:27:31.37+0000 [STG] ERR from pip._vendor import requests, six 2015-07-10T03:27:31.37+0000 [STG] ERR File "/app/.heroku/python/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/_vendor/__init__.py", line 92, in load_module 2015-07-10T03:27:31.37+0000 [STG] ERR raise ImportError("No module named '%s'" % (name,)) 2015-07-10T03:27:31.37+0000 [STG] ERR ImportError: No module named 'pip._vendor.requests' 2015-07-10T03:27:31.38+0000 [STG] OUT Staging failed: Buildpack compilation step failed |
|
Gwenn Etourneau
I am wondering about "Installing runtime (python-2.7.6)" I think only 2.7.9
toggle quoted message
Show quoted text
and 2.7.10 are supported on the cf2linux stack. Do you specify the python version on your application ? Can you try the one I give you ? On Fri, Jul 10, 2015 at 12:30 PM, 王小锋 <zzuwxf(a)gmail.com> wrote:
Hi, there |
|
王小锋 <zzuwxf at gmail.com...>
Thanks a lot, Gwenn
toggle quoted message
Show quoted text
I specify python version in runtime.txt, after modifying it to 2.7.9, it works. 2015-07-10 11:47 GMT+08:00 Gwenn Etourneau <getourneau(a)pivotal.io>: I am wondering about "Installing runtime (python-2.7.6)" I think only |
|
Gwenn Etourneau
:)
toggle quoted message
Show quoted text
On Mon, Jul 13, 2015 at 2:33 PM, 王小锋 <zzuwxf(a)gmail.com> wrote:
Thanks a lot, Gwenn |
|