Error in deploy django / app in heroku?

0

I need your help to try to find the error in my deploy, which I'm trying to do in heroku.

Follow bash information:

(python3) user@Inspiron-5548:~/opt/anaconda3/envs/python3/Projetos/ecommerce$ heroku logs
(python3) user@Inspiron-5548:~/opt/anaconda3/envs/python3/Projetos/ecommerce$ heroku keys:add ~/.ssh/id_rsa.pub
Uploading /home/user/.ssh/id_rsa.pub SSH key... done
(python3) user@Inspiron-5548:~/opt/anaconda3/envs/python3/Projetos/ecommerce$ git push heroku master
Counting objects: 53, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (48/48), done.
Writing objects: 100% (53/53), 46.43 KiB | 0 bytes/s, done.
Total 53 (delta 9), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Python app detected
remote: -----> Installing Python-3.6.1
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote:        /app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/bin/steps/pip-install: line 7: /app/.heroku/python/bin/pip: No such file or directory
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: ! Push rejected to primeirodjango.
remote: 
To https://git.heroku.com/primeirodjango.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/primeirodjango.git'

Follow this information:

requirements.txt

dj-database-url==0.4.2
Django==1.11.4
gunicorn==19.7.1
psycopg2==2.7.3

runtime.txt

python-3.6.1  

Procfile

web: python manage.py runserver 0.0.0.0:$PORT 

Note:

  • First time using heroku, but I did my homework and the communication is all set up according to the repository's documentation.

  • Within our project, we chose to use Anaconda because it is a complete python package. To start the project I did an envs inside the Anaconda 3 , but it exceeded its 1GB in size. As I had not been able to do the first deploy, I thought it was the size, then it lowered the "requirements.txt" file to essential libs.

  • asked by anonymous 24.08.2017 / 18:06

    2 answers

    1

    Heroku does not support python 3.6.1 , only 3.6.2
    Follow the official link

        
    24.08.2017 / 18:20
    0

    In your repository you should have changes that are not already in the machine which probably leads to this error try to force push this way:

    git push -f heroku master

        
    24.08.2017 / 18:10