我已经使用Flask创建了一个Python应用程序,现在我正在尝试在Heroku上部署它。当我尝试推送(使用“git push heroku master”)时,我收到以下错误:
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '<<<<<<< HEAD')
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python app
To git@heroku.com:bytefinder.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:bytefinder.git'
我对这些东西很新。我的应用程序在localhost上工作正常,但这是我对Heroku的初步推动,我还没有成功部署。我还应该注意,我的应用程序使用带有sqlite3的数据库。据我所知,数据库只能用于Heroku上的postgresql生成(我意识到太晚了......)因此我可能会因为这个而得到一些编译时错误(尽管我的应用程序编译时很好)在localhost上运行它。
非常感谢有关此事的任何建议!!
编辑:
这是完整的错误!
-----> Installing dependencies using pip version 1.1
Exception:
Traceback (most recent call last):
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg/pip/commands/install.py", line 219, in run
for req in parse_requirements(filename, finder=finder, options=option
s):
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg/pip/req.py", line 1288, in parse_requirements
req = InstallRequirement.from_line(line, comes_from)
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg/pip/req.py", line 107, in from_line
return cls(req, comes_from, url=url)
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg/pip/req.py", line 40, in __init__
req = pkg_resources.Requirement.parse(req)
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 2610, in parse
reqs = list(parse_requirements(s))
File "/tmp/build_16gy6shadhhm2/.heroku/venv/lib/python2.7/site-packages
/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 2523, in parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '<<<<<<< HEAD')
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python app
To git@heroku.com:bytefinder.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:bytefinder.git'