Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Heroku Error H10
#1
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
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply
#2
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.
while dad_has_cigs == True:
    happiness = True
    if dad_has_cigs == False:
    print("Dad come home!")
    happiness = not happiness
    break
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Star Leapcell: The Python-Friendly Alternative to Heroku + Airtable Hybrid IssacChan 1 465 Feb-01-2024, 06:00 AM
Last Post: Athi
  Deployed Spider on Heroku: How do I email downloaded files? JaneTan 2 1,566 Mar-24-2022, 08:31 AM
Last Post: JaneTan
  Importing Postgres Heroku from AWS S3 Drone4four 0 1,802 May-27-2021, 01:09 PM
Last Post: Drone4four
  Django project deployed to Heroku: Postgres security Drone4four 0 1,939 Mar-26-2021, 10:17 AM
Last Post: Drone4four
  Scrape script when deployed on heroku not giving expected outcomes alok001 1 3,257 Oct-19-2019, 12:39 PM
Last Post: alok001
  flask app to save images locally when deployed on heroku not working Prince_Bhatia 1 5,272 Feb-20-2019, 11:59 PM
Last Post: snippsat
  Deploy flask app on Heroku Prince_Bhatia 0 4,037 Feb-20-2019, 09:05 AM
Last Post: Prince_Bhatia
  Hosting statistic tool on heroku with flask secure? Zoja 1 2,873 Oct-29-2018, 10:07 AM
Last Post: Zoja

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020