Skip to content

fix(install): use resolved python variable in setup_open_webui.sh#27030

Closed
flanny7 wants to merge 1 commit into
NousResearch:mainfrom
flanny7:fix/setup-open-webui-python-cmd
Closed

fix(install): use resolved python variable in setup_open_webui.sh#27030
flanny7 wants to merge 1 commit into
NousResearch:mainfrom
flanny7:fix/setup-open-webui-python-cmd

Conversation

@flanny7

@flanny7 flanny7 commented May 16, 2026

Copy link
Copy Markdown
Contributor

Hi team, thank you for building and maintaining Hermes Agent! It has been an incredibly useful tool for my daily workflow. I'd like to contribute a small fix to the setup script.

The install_open_webui function correctly resolved the python interpreter into the $py variable, but hardcoded 'python' in subsequent pip install commands. This caused 'command not found' or 'externally-managed-environment' errors on systems where 'python' is not implicitly aliased to 'python3'.

What does this PR do?

This PR fixes a bug in the Open WebUI bootstrap script where the Python interpreter was hardcoded as python during the virtual environment package installation. By replacing the hardcoded python command with the dynamically resolved "$py" variable, the script now consistently targets the correct Python executable across different environments (especially on macOS or Linux where python is not always aliased to python3).

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 🔒 Security fix
  • 📝 Documentation update
  • ✅ Tests (adding or improving test coverage)
  • ♻️ Refactor (no behavior change)
  • 🎯 New skill (bundled or hub)

Changes Made

  • Changed python to "$py" in the install_open_webui function within scripts/setup_open_webui.sh to ensure pip install commands run inside the correct virtual environment context.

How to Test

  1. Run the script in an environment where the python command is not implicitly aliased to python3 (or Homebrew's externally managed environment is strictly enforced).
  2. Execute bash scripts/setup_open_webui.sh.
  3. Verify that the Open WebUI virtual environment is successfully created and open-webui is installed without throwing command not found or PEP 668 externally-managed-environment errors.

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (N/A: This is a fix for a bash installer script)
  • I've tested on my platform: macOS (Apple Silicon)

Documentation & Housekeeping

  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

Screenshots / Logs

Before:

[open-webui-bootstrap] Installing Open WebUI into a dedicated virtualenv...
[open-webui-bootstrap] Using Python interpreter: python3
scripts/setup_open_webui.sh: line 166: python: command not found

After:

[open-webui-bootstrap] Installing Open WebUI into a dedicated virtualenv...
[open-webui-bootstrap] Using Python interpreter: python3
...
Successfully installed open-webui...

The install_open_webui function correctly resolved the python interpreter into the $py variable, but hardcoded 'python' in subsequent pip install commands. This caused 'command not found' or 'externally-managed-environment' errors on systems where 'python' is not implicitly aliased to 'python3'.
@cardtest15-coder

This comment was marked as spam.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have labels May 16, 2026
@cardtest15-coder

This comment was marked as spam.

teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR #26661, #25576)
- @ether-btc (PR #26632)
- @LifeJiggy (PR #26516)
- @nekwo (PR #26481)
- @flooryyyy (PR #26374)
- @dgians (PR #26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR #27030)
- @hermesagent26 (PR #26438)
- @kriscolab (PR #26926, co-author on salvage commit)
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27292 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix(install): use resolved python variable in setup_open_webui.sh). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR NousResearch#26661, NousResearch#25576)
- @ether-btc (PR NousResearch#26632)
- @LifeJiggy (PR NousResearch#26516)
- @nekwo (PR NousResearch#26481)
- @flooryyyy (PR NousResearch#26374)
- @dgians (PR NousResearch#26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR NousResearch#27030)
- @hermesagent26 (PR NousResearch#26438)
- @kriscolab (PR NousResearch#26926, co-author on salvage commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants