Skip to content

[Setup]: Failed to install on Android with termux, reporting failed to build psutil #31415

Description

@kamperfer

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:
termux-user-repository/tur#2297
giampaolo/psutil#2743 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/install-updateInstaller, updater, packaging, wheels, doctorcomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions