/bin/bash: line 1: gunicorn: command not found

caballerosebastian
FREE

a month ago

Hi, I'm having this error and it's crashing. Does anyone know how to fix it?

$10 Bounty

6 Replies

a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 1 month ago


letto4135
FREE

a month ago

Is gunicorn installed through pip prior to running the command? Potentially through pip install -r requirements.txt or pip install gunicorn directly?


knjsoft
FREE

a month ago

Check the virtual environment, created or activated:

  • python3 -m venv venv (create)

  • source venv/bin/activate (activate)

  • pip install gunicorn (install)


knjsoft

Check the virtual environment, created or activated:python3 -m venv venv (create)source venv/bin/activate (activate)pip install gunicorn (install)

a month ago

Please keep these forums English only.


avirajkhare00
FREE

a month ago

Hi. gunicorn is not installed. You need to install gunicorn first.

Command to install gunicorn is: pip install gunicorn
It's better to include it inside your requirements.txt file.

You can visit their website too: https://gunicorn.org/#quickstart

$ pip install gunicorn $ cat myapp.py def app(environ, start_response): data = b"Hello, World!\n" start_response("200 OK", [ ("Content-Type", "text/plain"), ("Content-Length", str(len(data))) ]) return iter([data]) $ gunicorn -w 4 myapp:app [2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869) [2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync [2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874 [2014-09-10 10:22:28 +0000] [30875] [INFO] Booting worker with pid: 30875 [2014-09-10 10:22:28 +0000] [30876] [INFO] Booting worker with pid: 30876 [2014-09-10 10:22:28 +0000] [30877] [INFO] Booting worker with pid: 30877


buddyq
FREE

10 days ago

WE're having the same error message but we have it in our requirements.txt and we have tried in a file named: nixpacks.toml

providers = ["python"]

[phases.install]

cmds = ["pip install -r requirements.txt"]

[phases.start]

cmds = ["gunicorn zillowWeb.wsgi"]


9 days ago

Go to the service settings and find providers there. Add python to the list of providers.

If this does not help, make sure that gunicorn is installed with the command pip install gunicorn or pip install -r requirements.txt


/bin/bash: line 1: gunicorn: command not found - Railway Help Station