2017-06-02 80 views
0

我被要求對以前由不再可用的人管理的Heroku上的Django應用程序進行一些更改。Django - Heroku - 提交更改

我之前沒有使用Heroku,所以我希望這是一個非常簡單的問題。

我克隆使用heroku git:clone -a myapp

的應用程序,我改變了base.html文件。我從字面上刪除了幾行HTML。

我然後跑

git add . 
git commit -m "Some helpful message" 
git push heroku master 

而且我得到這個錯誤回溯:

Counting objects: 6, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (5/5), done. 
Writing objects: 100% (6/6), 497 bytes | 0 bytes/s, done. 
Total 6 (delta 4), reused 0 (delta 0) 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: -----> Python app detected 
remote: -----> Running pre-compile hook 
remote: -----> Noticed django-wkhtmltopdf, bootstrapping wkhtmltopdf. 
remote: -----> No runtime.txt provided; assuming python-2.7.3. 
remote: -----> Using Python runtime (python-2.7.3) 
remote: -----> Noticed pylibmc. Bootstrapping libmemcached. 
remote: -----> Installing dependencies using Pip (1.2.1) 
remote: ERROR:root:code for hash md5 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type md5 
remote: ERROR:root:code for hash sha1 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type sha1 
remote: ERROR:root:code for hash sha224 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type sha224 
remote: ERROR:root:code for hash sha256 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type sha256 
remote: ERROR:root:code for hash sha384 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type sha384 
remote: ERROR:root:code for hash sha512 was not found. 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> 
remote:  globals()[__func_name] = __get_hash(__func_name) 
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor 
remote:  raise ValueError('unsupported hash type %s' % name) 
remote: ValueError: unsupported hash type sha512 
remote: Traceback (most recent call last): 
remote: File "/app/.heroku/python/bin/pip", line 9, in <module> 
remote:  load_entry_point('pip==1.1', 'console_scripts', 'pip')() 
remote: File "/app/.heroku/python/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 343, in load_entry_point 
remote:  return get_distribution(dist).load_entry_point(group, name) 
remote: File "/app/.heroku/python/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2307, in load_entry_point 
remote:  return ep.load() 
remote: File "/app/.heroku/python/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2013, in load 
remote:  entry = __import__(self.module_name, globals(),globals(), ['__name__']) 
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 10, in <module> 
remote:  from pip.backwardcompat import walk_packages, console_to_str 
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/backwardcompat.py", line 18, in <module> 
remote:  import md5 as md5_module 
remote: File "/app/.heroku/python/lib/python2.7/md5.py", line 10, in <module> 
remote:  from hashlib import md5 
remote: ImportError: cannot import name md5 
remote: !  Push rejected, failed to compile Python app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy... 
remote: 
remote: ! Push rejected to app-portal. 
remote: 
To https://git.heroku.com/app-portal.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/app-portal.git' 

我唯一改變的文件base.html所以這是怎麼回事?

+0

你是否再次嘗試添加相同的行? –

+0

嘗試'git push heroku master --app_name' –

+0

@UsmanMaqbool - 相同的回溯和錯誤 – HenryM

回答

0

我已經解決了這個問題。該應用程序運行在Cedar-10上,Heroku聲明雖然堆棧將繼續運行,但應用程序更新不受支持或不可用。