繁体   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