Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao fazer o push para o Heroku

No final do push apresenta o seguinte erro:

remote:  !     Python has released a security update! Please consider upgrading to python-3.8.13
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> No change in requirements detected, installing from cache
remote: -----> Using cached install of python-3.8.10
remote: -----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting aioredis==1.3.1
remote:          Downloading aioredis-1.3.1-py3-none-any.whl (65 kB)
remote:        Collecting amqp==2.6.1
remote:          Downloading amqp-2.6.1-py2.py3-none-any.whl (48 kB)
remote:        ERROR: Could not find a version that satisfies the requirement apturl==0.5.2 (from versions: none)
remote:        ERROR: No matching distribution found for apturl==0.5.2
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 116b911b1a1bffaf5704b6484d71bf5666f65812
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 116b911b1a1bffaf5704b6484d71bf5666f65812
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to alura-pizzas.
remote: 
To https://git.heroku.com/alura-pizzas.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/alura-pizzas.git'
1 resposta
solução!

Pessoal, eu instalei a seguinte biblioteca e o erro desapareceu:

pip install pkg-resources

Fonte da pesquisa: https://stackoverflow.com/questions/51059009/while-building-project-in-circleci-2-0-getting-apturl-0-5-2-missing-error

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software