簡體   English   中英

Heroku推送被拒絕-編譯失敗-Unicode錯誤

[英]Heroku push rejected - failed to compile - Unicode error

我是Flask和Heroku的新手,因此為了進行嘗試,我編寫了一個小應用程序,當我使用foreman start在本地運行時,它運行良好。 但是,當我嘗試git push heroku master ,出現以下錯誤:

----------------------------------------
Cleaning up...
Command /app/.heroku/python/bin/python -c "import setuptools, 
tokenize;__file__='/tmp/pip_build_u44996/scipy/setup.py';exec(compile
(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record /tmp/pip-ETnOiF-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_u44996/scipy

Traceback (most recent call last):
File "/app/.heroku/python/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/app/.heroku/python/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/
__init__.py", line 185, in main
return command.main(cmd_args)
File "/app/.heroku/python/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/
basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 70: 
ordinal not in range(128)

!     Push rejected, failed to compile Python app

我究竟是怎么回事真正不了解這里的錯誤回溯。 它與scipy或我制作的html模板有關,還是與模塊之一有關? 我已經嘗試過解決其他人在stackoverflow上提出的類似問題的建議解決方案,但是我仍然遇到相同的錯誤。 任何幫助將不勝感激。 提前致謝!

嘗試在您的requirements.txt文件中將setup == xxx行替換為setuptools> = 0.7

為我工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM