i have install gunicorn in virtual env but vi Procfile command and web gunicorn app:app is not woking showing error .
will u pleas provide windows command
i have install gunicorn in virtual env but vi Procfile command and web gunicorn app:app is not woking showing error .
will u pleas provide windows command
hey @saini.harsh22,
gunicorn uses a library that is meant only for the use in linux.
Hence , it wont run.
and vi is a linux command, for windows you need to use touch or simply echo.
how to use touch ? in cmd
hey @saini.harsh22 ,
i am sorry , by mistake i told you another command .
To create an empty file use command
type nul>Procfile
sir i have install heroku cli install but cmd giving not recognized error will you please give step heroku in windows
The reason might be that , you haven’t added it to your environment paths , do it and it will work.
have you added its path in environment variables
sir i am try to deploy my app but it giving error will u please i m doing by github method
this github repo app.py is file
hey @saini.harsh22 ,
Your procfile is empty and also as you need to use either python 3.6 or 3.7 in runtime , so either state that , or just remove this runtime file also ( its better )
check the logs , and see what does it says.
-----> Building on the Heroku-20 stack
-----> Python app detected
-----> Installing python-3.6.12
-----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting APScheduler==3.6.3
Downloading APScheduler-3.6.3-py2.py3-none-any.whl (58 kB)
Collecting cachetools==4.2.1
Downloading cachetools-4.2.1-py3-none-any.whl (12 kB)
Collecting certifi==2020.12.5
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting cffi==1.14.4
Downloading cffi-1.14.4-cp36-cp36m-manylinux1_x86_64.whl (401 kB)
Collecting chardet==4.0.0
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting click==7.1.2
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting cryptography==3.3.1
Downloading cryptography-3.3.1-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting decorator==4.4.2
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting dialogflow==1.1.0
Downloading dialogflow-1.1.0-py2.py3-none-any.whl (354 kB)
Collecting feedparser==6.0.2
Downloading feedparser-6.0.2-py3-none-any.whl (80 kB)
Collecting Flask==1.1.2
Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting fuzzywuzzy==0.18.0
Downloading fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
Collecting gnewsclient==1.12
Downloading gnewsclient-1.12-py3-none-any.whl (7.9 kB)
Collecting google-api-core==1.25.1
Downloading google_api_core-1.25.1-py2.py3-none-any.whl (92 kB)
Collecting google-auth==1.24.0
Downloading google_auth-1.24.0-py2.py3-none-any.whl (114 kB)
Collecting googleapis-common-protos==1.52.0
Downloading googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB)
Collecting grpcio==1.35.0
Downloading grpcio-1.35.0-cp36-cp36m-manylinux2014_x86_64.whl (4.1 MB)
Collecting gunicorn==20.0.4
Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
Collecting idna==2.10
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting itsdangerous==1.1.0
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Jinja2==2.11.3
Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting MarkupSafe==1.1.1
Downloading MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl (32 kB)
Collecting protobuf==3.14.0
Downloading protobuf-3.14.0-cp36-cp36m-manylinux1_x86_64.whl (1.0 MB)
Collecting pyasn1==0.4.8
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyasn1-modules==0.2.8
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pycparser==2.20
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting python-telegram-bot==12.8
Downloading python_telegram_bot-12.8-py2.py3-none-any.whl (375 kB)
Collecting pytz==2021.1
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting requests==2.25.1
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting rsa==4.7
Downloading rsa-4.7-py3-none-any.whl (34 kB)
Collecting sgmllib3k==1.0.0
Downloading sgmllib3k-1.0.0.tar.gz (5.8 kB)
Collecting six==1.15.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting tornado==6.1
Downloading tornado-6.1-cp36-cp36m-manylinux2010_x86_64.whl (427 kB)
Collecting tzlocal==2.1
Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB)
Collecting urllib3==1.26.3
Downloading urllib3-1.26.3-py2.py3-none-any.whl (137 kB)
Collecting Werkzeug==1.0.1
Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Building wheels for collected packages: sgmllib3k
Building wheel for sgmllib3k (setup.py): started
Building wheel for sgmllib3k (setup.py): finished with status ‘done’
Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6064 sha256=70c137267832103a0dabbc2d25b78f63d82e46c8463621a2fbf0f13d1dc28e70
Stored in directory: /tmp/pip-ephem-wheel-cache-otstmhv7/wheels/bb/cb/26/83c0b63161dc478ded6db8d83a148d32b6cce8606043c2023b
Successfully built sgmllib3k
Installing collected packages: pytz, tzlocal, six, APScheduler, cachetools, certifi, pycparser, cffi, chardet, click, cryptography, decorator, pyasn1, pyasn1-modules, rsa, google-auth, protobuf, googleapis-common-protos, idna, urllib3, requests, google-api-core, dialogflow, sgmllib3k, feedparser, itsdangerous, Werkzeug, MarkupSafe, Jinja2, Flask, fuzzywuzzy, gnewsclient, grpcio, gunicorn, tornado, python-telegram-bot
Successfully installed APScheduler-3.6.3 Flask-1.1.2 Jinja2-2.11.3 MarkupSafe-1.1.1 Werkzeug-1.0.1 cachetools-4.2.1 certifi-2020.12.5 cffi-1.14.4 chardet-4.0.0 click-7.1.2 cryptography-3.3.1 decorator-4.4.2 dialogflow-1.1.0 feedparser-6.0.2 fuzzywuzzy-0.18.0 gnewsclient-1.12 google-api-core-1.25.1 google-auth-1.24.0 googleapis-common-protos-1.52.0 grpcio-1.35.0 gunicorn-20.0.4 idna-2.10 itsdangerous-1.1.0 protobuf-3.14.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 python-telegram-bot-12.8 pytz-2021.1 requests-2.25.1 rsa-4.7 sgmllib3k-1.0.0 six-1.15.0 tornado-6.1 tzlocal-2.1 urllib3-1.26.3
-----> Discovering process types
-----> Compressing…
Done: 75.2M
-----> Launching…
Released v3
https://damp-earth-14696.herokuapp.com/ deployed to Heroku
I try with commands like pip install python =3.6.0 or conda install python=3.6.0 but they are giving error and at last i uninstall my previous version and installed the 3.6.0 version.
Now my bot is not working with ngrok url also.
if you check the image , then it clearly says that no web process running
means there is some problem with your procfile.
Check it again and also check that , gunicorn is in the requirements.txt list.
for this , as you have downgraded your python , may be you also need to change the versions of your other modules too , they might be getting incompatible with this version.
Although , i wont recommend doing so.
3.6.12 is good and you can keep using that only.
Python 3.6.12,11,10,9 installer is not avaliable so i m installing 3.6.8 now.
will u please tell me all commands required here for deployment and for making procfile,requirments,runtime,.gitignore all this staff. and command for change branch so that it can push to correct app git.
please check this command