Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 部署到Heroku时,Setup.py egg_info无法满足pygobject的要求_Python_Django_Git_Heroku_Pip - Fatal编程技术网

Python 部署到Heroku时,Setup.py egg_info无法满足pygobject的要求

Python 部署到Heroku时,Setup.py egg_info无法满足pygobject的要求,python,django,git,heroku,pip,Python,Django,Git,Heroku,Pip,我第一次尝试通过Heroku部署我的Django应用程序,如果这是一个新手问题,请耐心等待 将我的git repo推送到heroku(git push heroku master)时,我得到以下错误: remote: Downloading pygobject-2.28.3.tar.bz2 (889kB) remote: Traceback (most recent call last): remote: File "<st

我第一次尝试通过Heroku部署我的Django应用程序,如果这是一个新手问题,请耐心等待

将我的git repo推送到heroku(git push heroku master)时,我得到以下错误:

remote:          Downloading pygobject-2.28.3.tar.bz2 (889kB)
remote:            Traceback (most recent call last):
remote:              File "<string>", line 20, in <module
remote:            Complete output from command python setup.py egg_info:
remote:            Traceback (most recent call last):
remote:
remote:              File "<string>", line 20, in <module
remote:            
remote:            ----------------------------------------
remote:            Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jrpptt2d/pygobject
remote: 
remote:  !     Push rejected, failed to compile Python app
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to arcane-springs-6117.
remote: 
To https://git.heroku.com/arcane-springs-6117.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/arcane-springs-6117.git'
我做错了什么

提前感谢您的帮助


编辑:缺少一半的错误消息

我以前在这里看到过这个错误:

git push origin master
To https://github.com/Joey-project/project.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/Joey-project/project.git'
发生这种情况的一个可能原因是,不应将其分支推送到已更新的远程分支

如果我没记错的话,一般的方法是使用类似的方法,如:

git fetch origin; git merge origin/master
了解更多信息可能会有用。也许这对你有帮助:)


祝你好运

抱歉-粘贴错误消息时,它最重要的部分消失了。帖子现在更新了。正如您所看到的,推送不起作用的原因是python应用程序没有编译——我怀疑这是git错误。但是谢谢!
git fetch origin; git merge origin/master