Skip to content

Hardcoded /home/guiyao/miniconda3/bin/python in backend/run_dev.sh #144

Open

Description

@avaande

Two invocations bake in a developer's personal conda path:

backend/run_dev.sh:22:

/home/guiyao/miniconda3/bin/python - "$1" <<'PY'

backend/run_dev.sh:114:

/home/guiyao/miniconda3/bin/python -m uvicorn app.main:app \

For anyone else this fails with bash: /home/guiyao/miniconda3/bin/python: No such file or directory. The README's "Quick Start" (line 232) explicitly invites users to cd backend && pip install -r requirements.txt && uvicorn ..., which does work — but the dev script that the README does not mention, and that is invoked by frontend/package.json:7 indirectly via bash ./scripts/run_frontend.sh, will continue to die.

Fix

Replace both occurrences with:

PYTHON_BIN="${PYTHON_BIN:-$(command -v python3 || command -v python)}"
"$PYTHON_BIN" -m uvicorn ...

That preserves the option to override (e.g. for conda env aist mentioned in the README) without the hardcoded absolute path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions