Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro apos git push

Obtive varios erros apos o git push

Vou colar alguns pedaços (não tenho como colocar todo devido ao limite de caracteres)

Building wheel for typed-ast (setup.py): started
remote:          Building wheel for typed-ast (setup.py): finished with status 'error'
remote:          error: subprocess-exited-with-error
remote:          
remote:          × python setup.py bdist_wheel did not run successfully.
remote:          │ exit code: 1


ERROR: Failed building wheel for typed-ast
remote:          Running setup.py clean for typed-ast
remote:          Building wheel for wrapt (setup.py): started
remote:          Building wheel for wrapt (setup.py): finished with status 'done'
remote:          Created wheel for wrapt: filename=wrapt-1.12.1-cp310-cp310-linux_x86_64.whl size=33881 sha256=3d13777756653b2ac036867bd8822919ceb0c00e7c09404823ef7b3549b218f6
remote:          Stored in directory: /tmp/pip-ephem-wheel-cache-vgqw6bnd/wheels/8e/61/d3/d9e7053100177668fa43216a8082868c55015f8706abd974f2
remote:        Successfully built lazy-object-proxy wrapt
remote:        Failed to build typed-ast
remote:        Installing collected packages: wrapt, validate-docbr, typed-ast, toml, pytz, mccabe, whitenoise, sqlparse, six, psycopg2-binary, lazy-object-proxy, isort, gunicorn, asgiref, python-dateutil, Django, astroid, pylint, Faker, djangorestframework, django-filter, dj-database-url, django-on-heroku
remote:          Running setup.py install for typed-ast: started
remote:          Running setup.py install for typed-ast: finished with status 'error'
remote:          error: subprocess-exited-with-error

error: subprocess-exited-with-error
remote:          
remote:          × Running setup.py install for typed-ast did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> [253 lines of output]
remote:              running install
remote:              /app/.heroku/python/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

error: unknown type name ‘PyArena’
remote:                461 | stmt_ty _Ta27_Expr(expr_ty value, int lineno, int col_offset, PyArena *arena);

error: unknown type name ‘PyArena’
remote:                545 | type_ignore_ty _Ta27_TypeIgnore(int lineno, string tag, PyArena *arena);
remote:                    |                                                         ^~~~~~~

error: command '/usr/bin/gcc' failed with exit code 1
remote:              [end of output]
remote:          
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:        error: legacy-install-failure
2 respostas

Estava dando tantos erros pq eu estava usando o ubuntu 21.10, que nao tem mais suporte então alguns pacotes ja nao tinham mais suporte, fiz a atualização para o 22.04.

No momento ainda nao consegui, o heroku apresenta os seguintes logs

!Insira aqui a descrição dessa imagem para ajudar na acessibilidade

solução!

Amigos, para atualizar e ajudar outras pessoas (pelo o que vi este erro h14 é comum no heroku). Tentei diversas formas de escrever o codigo web:gunicorn setup.wsgi, no arquivo Procfile. Sempre que eu tentava e nao dava certo alterava a forma depois do deploy e dava o comando heroku ps:scale web=1.

Depois de diversas tentativas quando dei o deploy com o Procfile com web: gunicorn -b 0.0.0.0:8000 setup:application --log-file- (que continuou nao dando certo) e dei heroku ps:scale web=1 no terminal, finalmente criou uma dyno.

Depois de mais algumas tentativas o deploy deu certo com o comando web: gunicorn setup.wsgi --log-file-