Python Forum

Full Version: Heroku Error H10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

My flask app is crashing constantly with this error. Files are:

app name on heroku settings is: "obscure-citadel-40024"

basic flask app(flasktest.py)

Procfile (Named "Procfile")
web: gunicorn --bind 0.0.0.0:$PORT flaskapp:app

Runtime(Named "runtime.txt")
python-3.9.7

Requirements(Named "requirements.txt") - It includes all the extra modules I have installed, I've taken a few out as they were causing errors. This is what's left:

altgraph==0.17
auto-py-to-exe==2.10.0
backports.entry-points-selectable==1.1.0
bottle==0.12.19
bottle-websocket==0.2.9
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.0.4
click==8.0.1
colorama==0.4.4
cycler==0.10.0
distlib==0.3.2
docutils==0.17.1
Eel==0.12.4
et-xmlfile==1.1.0
filelock==3.0.12
Flask==2.0.1
fpdf==1.7.2
future==0.18.2
gevent==21.8.0
gevent-websocket==0.10.1
greenlet==1.1.1
gunicorn==20.1.0
idna==3.2
itsdangerous==2.0.1
Jinja2==3.0.1
kiwisolver==1.3.1
MarkupSafe==2.0.1
matplotlib==3.4.2
numpy==1.21.1
openpyxl==3.0.7
pandas==1.3.1
pdf2image==1.16.0
pefile==2021.5.24
Pillow==8.3.1
platformdirs==2.2.0
pycparser==2.20
Pygments==2.9.0
pyinstaller==4.5.1
pyinstaller-hooks-contrib==2021.2
pyparsing==2.4.7
PyQt5==5.15.5
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.0
PySimpleGUI==4.46.0
python-dateutil==2.8.2
pytz==2021.1
requests==2.26.0
six==1.16.0
SQLAlchemy==1.4.26
style==1.1.0
update==0.0.1
urllib3==1.26.6
virtualenv==20.7.2
Werkzeug==2.0.1
whichcraft==0.6.1
xlrd==2.0.1
zope.event==4.5.0
zope.interface==5.4.0
Hello,

Fixed the issue, in my flask code it was trying to import a module that wasnt there. Further to this the procfile was looking at the wrong thing. It should have said "web: gunicorn --bind 0.0.0.0:$PORT flasktest:app" to match the file name.