I am trying to deploy a flask application (https://github.com/ihavemadefire/BestYearYet) using Heroku. When I deploy it it crashes immediately. I can't tell if the redirect is telling me there is an error in my code (It runs perfectly on a local browser port), an error in my virtual env or if there is an error in an external library.
I have tried updating the appdirs and flask-dateutil libraries. I have tried deploying from the Heroku git cli and from Github. I checked my code to see if I missed something (but like I said, it runs fine locally) I even tried rebooting. I think this problem is beyond my experience level.
Here are the relevant error logs from Heroku (greatly truncated):
File "/app/.heroku/python/lib/python3.6/site-packages/alembic/script/base.py", line 7, in from dateutil import tz File "/app/.heroku/python/lib/python3.6/site-packages/dateutil/tz.py", line 78
self._name, ^
python-dateutil==2.8.1inrequirements.txtsolved the issue for me. Heroku was using python-dateutil==1.5.0 which seemingly had compatibility issues with python-3.6.13. Upon pushing, Heroku gave this errorERROR: heroku 0.1.4 has requirement python-dateutil==1.5, but you'll have python-dateutil 2.8.1 which is incompatible., and then showed installed python-dateutil-2.8.1 successfully. I don't know what happened here, but everything started working correctly! XD