Problem Deploying my App with Heroku

I am following the video tutorial on using Heroku for deploying my app that I have created. The tutorial is with the developer that did all of the WebApp lessons. I have followed his instructions line for line from the beginning and now that I am trying to deploy it I am having an error. Here is the error:

(myapp) mttaborturtle@penguin:~/projects/myapp$ git push heroku master
Enumerating objects: 1899, done.
Counting objects: 100% (1899/1899), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1832/1832), done.
Writing objects: 100% (1899/1899), 11.25 MiB | 839.00 KiB/s, done.
Total 1899 (delta 149), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: -----> Python app detected
remote: -----> Installing python-3.6.12
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting atomicwrites==1.4.0
remote:          Downloading atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
remote:        Collecting click==7.1.2
remote:          Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
remote:        Collecting Flask==1.1.2
remote:          Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
remote:        Collecting Flask-SQLAlchemy==2.4.4
remote:          Downloading Flask_SQLAlchemy-2.4.4-py2.py3-none-any.whl (17 kB)
remote:        Collecting Flask-WTF==0.14.3
remote:          Downloading Flask_WTF-0.14.3-py2.py3-none-any.whl (13 kB)
remote:        Collecting gunicorn==20.0.4
remote:          Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
remote:        Collecting helpdev==0.7.1
remote:          Downloading helpdev-0.7.1-py3-none-any.whl (14 kB)
remote:        Collecting importlib-metadata==1.7.0
remote:          Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
remote:        Collecting itsdangerous==1.1.0
remote:          Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
remote:        Collecting Jinja2==2.11.2
remote:          Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
remote:        Collecting MarkupSafe==1.1.1
remote:          Downloading MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (27 kB)
remote:        ERROR: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r /tmp/build_e87d7f11/requirements.txt (line 12)) (from versions: none)
remote:        ERROR: No matching distribution found for pkg-resources==0.0.0 (from -r /tmp/build_e87d7f11/requirements.txt (line 12))
remote:  !     Push rejected, failed to compile Python app.
remote:  !     Push failed
remote: Verifying deploy...
remote: !       Push rejected to boiling-wave-03240.
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ''

If anyone has any information I’d be very grateful. I’ve been working on this ALL day and I am at wits end. Thank you!

Hi there.

You need to edit your requirements.txt file and remove the line pkg-resources=0.0.0.

Commit the change afterwards and try and push to Heroku again, it should work… other issues notwithstanding. :slight_smile: