hermes - 💡(How to fix) Fix [Setup]: Failed to install on Android with termux, reporting failed to build psutil

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

(venv) ~/hermes-agent $ python -m pip install -e '.[termux]' -c constraints-termux.txt Obtaining file:///data/data/com.termux/files/home/hermes-agent Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Collecting openai==2.24.0 (from hermes-agent==0.14.0) Using cached openai-2.24.0-py3-none-any.whl.metadata (29 kB) Collecting python-dotenv==1.2.2 (from hermes-agent==0.14.0) Using cached python_dotenv-1.2.2-py3-none-any.whl.metadata (27 kB) Collecting fire==0.7.1 (from hermes-agent==0.14.0) Using cached fire-0.7.1-py3-none-any.whl.metadata (5.8 kB) Collecting httpx==0.28.1 (from httpx[socks]==0.28.1->hermes-agent==0.14.0) Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB) Collecting rich==14.3.3 (from hermes-agent==0.14.0) Using cached rich-14.3.3-py3-none-any.whl.metadata (18 kB) Collecting tenacity==9.1.4 (from hermes-agent==0.14.0) Using cached tenacity-9.1.4-py3-none-any.whl.metadata (1.2 kB) Collecting pyyaml==6.0.3 (from hermes-agent==0.14.0) Using cached pyyaml-6.0.3.tar.gz (130 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting ruamel.yaml==0.18.17 (from hermes-agent==0.14.0) Using cached ruamel_yaml-0.18.17-py3-none-any.whl.metadata (27 kB) Collecting requests==2.33.0 (from hermes-agent==0.14.0) Using cached requests-2.33.0-py3-none-any.whl.metadata (5.1 kB) Collecting jinja2==3.1.6 (from hermes-agent==0.14.0) Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB) Collecting pydantic==2.13.4 (from hermes-agent==0.14.0) Using cached pydantic-2.13.4-py3-none-any.whl.metadata (109 kB) Collecting prompt_toolkit==3.0.52 (from hermes-agent==0.14.0) Using cached prompt_toolkit-3.0.52-py3-none-any.whl.metadata (6.4 kB) Collecting croniter==6.0.0 (from hermes-agent==0.14.0) Using cached croniter-6.0.0-py2.py3-none-any.whl.metadata (32 kB) Collecting PyJWT==2.12.1 (from PyJWT[crypto]==2.12.1->hermes-agent==0.14.0) Using cached pyjwt-2.12.1-py3-none-any.whl.metadata (4.1 kB) Collecting psutil==7.2.2 (from hermes-agent==0.14.0) Using cached psutil-7.2.2.tar.gz (493 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] platform android is not supported [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed to build 'psutil' when getting requirements to build wheel

Code Example



---

(venv) ~/hermes-agent $ python -m pip install -e '.[termux]' -c constraints-termux.txt
Obtaining file:///data/data/com.termux/files/home/hermes-agent
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting openai==2.24.0 (from hermes-agent==0.14.0)
  Using cached openai-2.24.0-py3-none-any.whl.metadata (29 kB)
Collecting python-dotenv==1.2.2 (from hermes-agent==0.14.0)
  Using cached python_dotenv-1.2.2-py3-none-any.whl.metadata (27 kB)
Collecting fire==0.7.1 (from hermes-agent==0.14.0)
  Using cached fire-0.7.1-py3-none-any.whl.metadata (5.8 kB)
Collecting httpx==0.28.1 (from httpx[socks]==0.28.1->hermes-agent==0.14.0)
  Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting rich==14.3.3 (from hermes-agent==0.14.0)
  Using cached rich-14.3.3-py3-none-any.whl.metadata (18 kB)
Collecting tenacity==9.1.4 (from hermes-agent==0.14.0)
  Using cached tenacity-9.1.4-py3-none-any.whl.metadata (1.2 kB)
Collecting pyyaml==6.0.3 (from hermes-agent==0.14.0)
  Using cached pyyaml-6.0.3.tar.gz (130 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting ruamel.yaml==0.18.17 (from hermes-agent==0.14.0)
  Using cached ruamel_yaml-0.18.17-py3-none-any.whl.metadata (27 kB)
Collecting requests==2.33.0 (from hermes-agent==0.14.0)
  Using cached requests-2.33.0-py3-none-any.whl.metadata (5.1 kB)
Collecting jinja2==3.1.6 (from hermes-agent==0.14.0)
  Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Collecting pydantic==2.13.4 (from hermes-agent==0.14.0)
  Using cached pydantic-2.13.4-py3-none-any.whl.metadata (109 kB)
Collecting prompt_toolkit==3.0.52 (from hermes-agent==0.14.0)
  Using cached prompt_toolkit-3.0.52-py3-none-any.whl.metadata (6.4 kB)
Collecting croniter==6.0.0 (from hermes-agent==0.14.0)
  Using cached croniter-6.0.0-py2.py3-none-any.whl.metadata (32 kB)
Collecting PyJWT==2.12.1 (from PyJWT[crypto]==2.12.1->hermes-agent==0.14.0)
  Using cached pyjwt-2.12.1-py3-none-any.whl.metadata (4.1 kB)
Collecting psutil==7.2.2 (from hermes-agent==0.14.0)
  Using cached psutil-7.2.2.tar.gz (493 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
   exit code: 1
  ╰─> [1 lines of output]
      platform android is not supported
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'psutil' when getting requirements to build wheel
RAW_BUFFERClick to expand / collapse

What's Going Wrong?

I tried to install hermes agent on android 13 and 16 devices following termux guide, but all of them failed at "4. Install the tested Termux bundle".

Steps Taken

Strictly follow the "Hermes on Android with Termux" guide, option 2. But failed at the command "python -m pip install -e '.[termux]' -c constraints-termux.txt", error info is:

Collecting psutil==7.2.2 (from hermes-agent==0.14.0) Using cached psutil-7.2.2.tar.gz (493 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] platform android is not supported [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed to build 'psutil' when getting requirements to build wheel

Installation Method

Install script (curl | bash)

Operating System

Android 13 and 16

Python Version

Python 3.13.13

Hermes Version

Fail to install

Debug Report

Full Error Output

(venv) ~/hermes-agent $ python -m pip install -e '.[termux]' -c constraints-termux.txt
Obtaining file:///data/data/com.termux/files/home/hermes-agent
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting openai==2.24.0 (from hermes-agent==0.14.0)
  Using cached openai-2.24.0-py3-none-any.whl.metadata (29 kB)
Collecting python-dotenv==1.2.2 (from hermes-agent==0.14.0)
  Using cached python_dotenv-1.2.2-py3-none-any.whl.metadata (27 kB)
Collecting fire==0.7.1 (from hermes-agent==0.14.0)
  Using cached fire-0.7.1-py3-none-any.whl.metadata (5.8 kB)
Collecting httpx==0.28.1 (from httpx[socks]==0.28.1->hermes-agent==0.14.0)
  Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting rich==14.3.3 (from hermes-agent==0.14.0)
  Using cached rich-14.3.3-py3-none-any.whl.metadata (18 kB)
Collecting tenacity==9.1.4 (from hermes-agent==0.14.0)
  Using cached tenacity-9.1.4-py3-none-any.whl.metadata (1.2 kB)
Collecting pyyaml==6.0.3 (from hermes-agent==0.14.0)
  Using cached pyyaml-6.0.3.tar.gz (130 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting ruamel.yaml==0.18.17 (from hermes-agent==0.14.0)
  Using cached ruamel_yaml-0.18.17-py3-none-any.whl.metadata (27 kB)
Collecting requests==2.33.0 (from hermes-agent==0.14.0)
  Using cached requests-2.33.0-py3-none-any.whl.metadata (5.1 kB)
Collecting jinja2==3.1.6 (from hermes-agent==0.14.0)
  Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Collecting pydantic==2.13.4 (from hermes-agent==0.14.0)
  Using cached pydantic-2.13.4-py3-none-any.whl.metadata (109 kB)
Collecting prompt_toolkit==3.0.52 (from hermes-agent==0.14.0)
  Using cached prompt_toolkit-3.0.52-py3-none-any.whl.metadata (6.4 kB)
Collecting croniter==6.0.0 (from hermes-agent==0.14.0)
  Using cached croniter-6.0.0-py2.py3-none-any.whl.metadata (32 kB)
Collecting PyJWT==2.12.1 (from PyJWT[crypto]==2.12.1->hermes-agent==0.14.0)
  Using cached pyjwt-2.12.1-py3-none-any.whl.metadata (4.1 kB)
Collecting psutil==7.2.2 (from hermes-agent==0.14.0)
  Using cached psutil-7.2.2.tar.gz (493 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
exit code: 1
  ╰─> [1 lines of output]
      platform android is not supported
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'psutil' when getting requirements to build wheel

What I've Already Tried

Tried to fix psutil issue on android but doesn't work: https://github.com/termux-user-repository/tur/issues/2297 https://github.com/giampaolo/psutil/issues/2743#issue-4022796430

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING