Heroku安装pip要求失败

时间:2022-04-25 11:24:36

Something very strange is happening in Heroku, I normally install my packages when I do a git push heroku master, but now what worked for months for me not work anymore.

在Heroku发生了一件很奇怪的事情,我通常在做git push Heroku master的时候安装我的包,但是现在我工作了几个月的包都不能用了。

Here is the error:

这是错误:

remote: -----> Python app detected
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote:        Obtaining django-widget-tweaks from git+https://github.com/julianogouveia/django-widget-tweaks/#egg=django-widget-tweaks (from -r /tmp/build_843fc05109f047351641f1b9e1db069d/requirements.txt (line 2))
remote:          Cloning https://github.com/julianogouveia/django-widget-tweaks/ to /app/.heroku/src/django-widget-tweaks
remote:            Complete output from command python setup.py egg_info:
remote:            usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
remote:               or: -c --help [cmd1 cmd2 ...]
remote:               or: -c --help-commands
remote:               or: -c cmd --help
remote:            
remote:            error: invalid command 'egg_info'
remote:            
remote:            ----------------------------------------
remote:        Command "python setup.py egg_info" failed with error code 1 in /app/.heroku/src/django-widget-tweaks/
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to partnersbit-prod.

What is more crazy about is that the egg_info error is a setuptools pip error, and the heroku always use the last version of pip with setuptools.

更疯狂的是egg_info错误是setuptools pip错误,heroku总是使用最后一个版本的pip和setuptools。

Someone has a ideia to how to start debugging this on heroku? The heroku documentation doesn't say anything about this and the * already opened issue about this problem is incomplete and not well documented.

有人知道如何在heroku上调试这个吗?heroku文档没有对此做任何说明,关于这个问题的*已经打开了一个问题,它是不完整的,也没有很好的文档说明。

2 个解决方案

#1


2  

What seems is that Heroku is doing some enhancements in the python-3.6.4 runtime and this are causing this egg_info error. I solved by now, changing the python runtime version from 3.6.4 to the 3.6.3 version.

看起来Heroku在python-3.6.4运行时中做了一些增强,这导致了egg_info错误。现在我解决了,将python运行时版本从3.6.4更改为3.6.3版本。

I'll not close this question until I know how to go back to 3.6.4 version without errors.

在我知道如何在没有错误的情况下返回3.6.4版本之前,我不会结束这个问题。

#2


0  

For me it was very helpful changing in runtime.txt python-3.6.4 -> python-3.6.3 -> python-3.6.4 and send it in separate pushes.

对我来说,在运行时进行更改非常有用。txt python-3.6.4 -> python-3.6.3 -> python-3.6.4并将其分别推送。

#1


2  

What seems is that Heroku is doing some enhancements in the python-3.6.4 runtime and this are causing this egg_info error. I solved by now, changing the python runtime version from 3.6.4 to the 3.6.3 version.

看起来Heroku在python-3.6.4运行时中做了一些增强,这导致了egg_info错误。现在我解决了,将python运行时版本从3.6.4更改为3.6.3版本。

I'll not close this question until I know how to go back to 3.6.4 version without errors.

在我知道如何在没有错误的情况下返回3.6.4版本之前,我不会结束这个问题。

#2


0  

For me it was very helpful changing in runtime.txt python-3.6.4 -> python-3.6.3 -> python-3.6.4 and send it in separate pushes.

对我来说,在运行时进行更改非常有用。txt python-3.6.4 -> python-3.6.3 -> python-3.6.4并将其分别推送。