I had the same problem and solved it, not sure it will work for everyone. I noticed that in my requirements.txt file, I did not have the alembic package listed. So alembic was not installed loading the files on Heroku! I tried using heroku run pip install alembic
, which installed the package successfully but still didn't solve the problem! I tried heroku run alembic --version
, still the same.
The way I solved it is by deleting the local requirments.txt folder and generated it again using pip freeze > requirements.txt
, this time alembic was there of course! After pushing my changes to heroku everything worked fine!