Push rejected, failed to compile Python app

前端 未结 3 1435
情深已故
情深已故 2020-12-11 09:42

I\'m getting a rejected error when trying to deploy a Django app to Heroku. I looked at possible solutions here:

  1. Heroku push rejected, failed to compile Py

相关标签:
3条回答
  • 2020-12-11 10:17

    This is apparently a bug in the distribute package, which doesn't seem likely to get fixed:

    Distribute is now considered deprecated and replaced by setuptools. I suggest replacing 'distribute==0.6.28' in requirements.txt with 'setuptools==1.0' or similar. The latest versions of pip (>=1.4) and setuptools (>=0.7) have better support for the unified code and upgrades and seek to obviate issues like the one encountered here.

    0 讨论(0)
  • 2020-12-11 10:22

    I had this error until I upgraded the Heroku stack from cedar-14 (old and deprecated) to Heroku-18 (new). Then everything worked.

    0 讨论(0)
  • 2020-12-11 10:27

    This is a problem with the deprecated distribute package. See Bug #91 on Bitbucket.

    Replacing distribute==0.6.24 with setuptools==0.7.3 in your requirements.txt file should remedy your problem.

    0 讨论(0)
提交回复
热议问题