Expected app to deploy out of the box, but deploy failed
davidawad opened this issue · 1 comments
davidawad commented
Running on OS Sierra, ran the following commands, got the following error.
$ ls -la
total 16K
-rw-r--r-- 1 david staff 39 Nov 5 17:57 Procfile
-rw-r--r-- 1 david staff 932 Nov 5 17:57 app.py
-rw-r--r-- 1 david staff 445 Nov 5 17:57 readme.md
-rw-r--r-- 1 david staff 156 Nov 5 17:57 requirements.txt
drwxr-xr-x 3 david staff 102 Nov 5 17:57 templates
$ heroku create yolofl
Creating ⬢ yolofl... done
https://yolofl.herokuapp.com/ | https://git.heroku.com/yolofl.git
$ git push heroku master
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (35/35), 3.92 KiB | 0 bytes/s, done.
Total 35 (delta 12), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-2.7.12
. . .
remote: Before install bootstrap.
remote: Scanning installed packages
remote: Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages/setuptools-25.2.0-py2.7.egg
remote: Egg installation
remote: Patching...
remote: Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-25.2.0-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-25.2.0-py2.7.egg.OLD.1478383394.16
remote: Patched done.
remote: Relaunching...
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: NameError: name 'install' is not defined
remote:
remote: ----------------------------------------
remote: Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Iu_ZmV/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-AgBDqv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Iu_ZmV/distribute/
remote:
remote: !
yefim commented
Try the new heroku postgres addon heroku addons:create heroku-postgresql:hobby-dev
. Also, I've updated the requirements.txt to update the dependencies.