我正在尝试在bluemix上部署django应用程序,但在安装依赖项时,它给出的散列类型没有找到错误。
这是我的manifest.yml:
applications:
- name: twhisper
memory: 1024M
command: python manage.py runserver
buildpack: https://github.com/cloudfoundry/python-buildpack#v1.1.2
path: .
日志如下:
-------> Buildpack version 1.1.2
-----> Installing runtime (python-2.7.9)
-----> Installing dependencies with pip
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ImportError: No module named 'pip._vendor.requests'
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/app/.heroku/python/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
有人能说出问题所在吗? 之前我能够部署它。我认为buildpack可能存在一些问题。提前谢谢......
答案 0 :(得分:2)
此问题可能是由于现有应用程序中存在的buildpack缓存造成的。 Bluemix将默认堆栈从lucid64更改为cflinuxfs2,因此现有的buildpack将被编译为&#39;反对旧堆栈。获取此缓存的buildpack并在cflinuxfs2上运行时,您会看到这些问题。
请使用cf delete appname
命令从Bluemix删除现有应用,然后再次推送该应用。您应该看到输出指示创建了一个新应用程序,并且再次构建buildpack而不是从缓存中检索。