Skip to content

Fix browser hand Python detection on modern Linux (python3 vs python)#393

Closed
cryptonahue wants to merge 1 commit intoRightNow-AI:mainfrom
cryptonahue:fix/browser-hand-python3-check
Closed

Fix browser hand Python detection on modern Linux (python3 vs python)#393
cryptonahue wants to merge 1 commit intoRightNow-AI:mainfrom
cryptonahue:fix/browser-hand-python3-check

Conversation

@cryptonahue
Copy link
Copy Markdown
Contributor

Summary

  • The browser hand installer checks for python binary to verify Python 3 is installed
  • Modern Debian/Ubuntu (22.04+) only ships python3python is not available by default
  • This causes the dependency check to always fail even when Python 3 is properly installed, blocking the hand setup wizard

Reproduction

  1. Install OpenFang on Ubuntu 22.04+ or Debian 11+ (fresh install, no python-is-python3 package)
  2. Open the browser hand installer in the dashboard
  3. Dependency check shows ✗ Python 3 must be installed despite Python 3 being present at /usr/bin/python3

Fix

Changed check_value = "python" to check_value = "python3" in HAND.toml. The install command (sudo apt install python3) was already correct.

# Before
check_value = "python"

# After
check_value = "python3"

Test plan

  • cargo test -p openfang-hands — 35 tests pass
  • cargo clippy -p openfang-hands -- -D warnings — zero warnings

Modern Debian/Ubuntu systems (24.04+) only ship python3 as the binary
name — python is not available by default. The browser hand dependency
check was using check_value = "python" which always fails on these
systems, blocking the hand installer even when Python 3 is properly
installed.

Changed check_value from "python" to "python3" to match the actual
binary name on Linux. The install command (sudo apt install python3)
was already correct.
@jaberjaber23
Copy link
Copy Markdown
Member

Already fixed on main.

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

Labels

under-review PR is under review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants