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

a year ago

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

$10 Bounty

6 Replies

a year 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 12 months ago


letto4135
FREE

a year 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 year 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 year ago

Please keep these forums English only.


avirajkhare00
FREE

a year 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

a year 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"]


a year 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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...