Bash: streamlit: command not found

Hi,

My project contains postgreSQL server. I have used streamlit framework to create my web app.
It is saying build deployed successfully.
then im getting the error:
bash: streamlit: command not found

buildCommand: “mkdir -p /app/.streamlit && cp .env /app/.streamlit/ && pip install --upgrade streamlit && pip install -r requirements.txt”

deploy:

  • source: .env
    dest: /app/.env
  • source: pages/*.py
    dest: /app/pages/
  • source: sample data/
    dest: /app/sample data/
  • source: app.py
    dest: /app/app.py
  • source: requirements.txt
    dest: /app/requirements.txt

startCommand: “streamlit run app.py”
this is my render.yaml file details.

when i deplloy it:
==> Cloning from GitHub - mdAdnn/analysis_multipage_app

Dec 24 09:11:06 PM==> Checking out commit a05c5c7f1fff05c0430e07a0eb863e07f3ca96b7 in branch main

Dec 24 09:11:07 PM==> Downloading cache…

Dec 24 09:11:17 PM==> Transferred 213MB in 7s. Extraction took 2s.

Dec 24 09:11:21 PM==> Using Node version 20.10.0 (default)

Dec 24 09:11:21 PM==> Using Python version 3.11.6 (default)

Dec 24 09:11:24 PM==> Using Poetry version 1.7.1 (default)

Dec 24 09:11:24 PM==> Docs on specifying a Poetry version: Specifying a Poetry Version | Render Docs

Dec 24 09:11:24 PM==> Running build command ‘echo “No build command required”’…

Dec 24 09:11:24 PMNo build command required

Dec 24 09:11:25 PM==> Uploading build…

Dec 24 09:11:33 PM==> Build uploaded in 8s

Dec 24 09:11:33 PM==> Build successful :tada:

Dec 24 09:11:36 PM==> Deploying…

Dec 24 09:11:55 PM==> Using Node version 20.10.0 (default)

Dec 24 09:11:59 PM==> Running ‘streamlit run app.py’

Dec 24 09:11:59 PMbash: streamlit: command not found

Dec 24 09:12:01 PM==> Using Node version 20.10.0 (default)

Dec 24 09:12:05 PM==> Running ‘streamlit run app.py’

Dec 24 09:12:05 PMbash: streamlit: command not found

Kindly help please

Hi,

The Build Command you mention, doesn’t appear to be the same as the one shown in the logs you shared:

Dec 24 09:11:24 PM==> Running build command ‘echo “No build command required”’…

You’ll need to install you dependencies, e.g. streamlit, so that you can call the command.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.