Had two different people report being unable to in...
# feedback
w
Had two different people report being unable to install the CLI using
uv
Seems like uv was trying to install 0.0.0 instead of latest for some reason? Maybe we can set
==latest
in the install command? Logs in ๐Ÿงต
Copy code
(ckl@bionic)โžœ  openhands-workshop git:(main)                                                                                     [15:22:00]
(ckl@bionic)โžœ  openhands-workshop git:(main) mkdir -p .openhands/microagents                                                     [15:22:00]
(ckl@bionic)โžœ  openhands-workshop git:(main) touch .openhands/microagents/repo.md                                                [15:22:09]
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv tool install openhands                                                         [15:22:49]
Resolved 1 package in 948ms
Prepared 1 package in 769ms
Installed 1 package in 3ms
 + openhands==0.0.0
No executables are provided by package `openhands`; removing tool
error: Failed to install entrypoints for `openhands`
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv add openhands                                                                  [15:23:55]
error: No `pyproject.toml` found in current directory or any parent directory
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv init                                                                           [15:24:33]
Initialized project `openhands-workshop`
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv add openhands                                                                  [15:24:37]
Using CPython 3.10.18
Creating virtual environment at: .venv
Resolved 334 packages in 9.05s
Prepared 1 package in 521ms
Installed 1 package in 3ms
 + openhands==0.0.0
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv tool install openhands                                                         [15:24:50]
Resolved 1 package in 1ms
Installed 1 package in 2ms
 + openhands==0.0.0
No executables are provided by package `openhands`; removing tool
error: Failed to install entrypoints for `openhands`
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— ls -l                                                                             [15:24:55]
total 2216
-rw-r--r--  1 ckl  staff       96 Nov 22 15:24 main.py
-rw-r--r--  1 ckl  staff      189 Nov 22 15:24 pyproject.toml
-rw-r--r--  1 ckl  staff       79 Nov 22 15:13 README.md
-rw-r--r--  1 ckl  staff  1121931 Nov 22 15:24 uv.lock
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— cat pyproject.toml                                                                [15:25:37]
[project]
name = "openhands-workshop"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "openhands>=0.0.0",
]
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— uv --version                                                                      [15:25:40]
uv 0.9.6 (Homebrew 2025-10-29)
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ— brew upgrade uv                                                                   [15:26:23]
โœ”๏ธŽ JSON API cask.jws.json                                                                                       [Downloaded   15.0MB/ 15.0MB]
โœ”๏ธŽ JSON API formula.jws.json                                                                                    [Downloaded   31.7MB/ 31.7MB]
==> Upgrading 1 outdated package:
uv 0.9.6 -> 0.9.11
==> Fetching downloads for: uv
โœ”๏ธŽ Bottle uv (0.9.11)                                                                                           [Downloaded   18.1MB/ 18.1MB]
==> Upgrading uv
  0.9.6 -> 0.9.11
==> Pouring uv--0.9.11.arm64_sequoia.bottle.tar.gz
๐Ÿบ  /opt/homebrew/Cellar/uv/0.9.11: 17 files, 42.9MB
==> Running `brew cleanup uv`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
Removing: /opt/homebrew/Cellar/uv/0.9.6... (17 files, 42MB)
Removing: /Users/ckl/Library/Caches/Homebrew/uv_bottle_manifest--0.9.6... (8KB)
Removing: /Users/ckl/Library/Caches/Homebrew/uv--0.9.6... (17.8MB)
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
(ckl@bionic)โžœ  openhands-workshop git:(main) โœ—
c
@quick-window-91705, this might be an issue with the user's Python version? the 0.0.0 seems like a placeholder we upgraded earlier that works for all python version..
e
Separately, we still want to move towards a one-line shell install right? https://github.com/OpenHands/OpenHands-CLI/issues/90
s
if it helps - I had trouble installing the CLI with
uv
on
python 3.14
yesterday, but once I pinned to 3.12 (minimum required version) it was fine. IIRC it was something about
CPython
trying to compile from source, which required
rust
be installed or something weird like that.
๐Ÿ‘ 1
Found some ๐Ÿž crumbs...
Copy code
~/Documents/GitHub/OpenHands-CLI (main โœ˜)โœน แ… make install uv sync Using CPython 3.14.0 Creating virtual environment at: .venv Resolved 357 packages in 10ms

...

ร— Failed to build tiktoken==0.11.0

...
^ There is no prebuilt wheel for
tiktoken==0.11.0
in Python 3.14, so it tried to compile from source, which requires
rust
(I didn't have rust installed on my sandbox env) Maybe this helps, maybe not, but I can confirm pinning to
Python 3.12
worked for me. ๐Ÿ™‚
ty 1
w
OK maybe we can pin python in our pyproject.toml?
๐Ÿ‘ 1
c
@nutritious-balloon-65098, please check out OpenHands/docs repo and update the documentation here to use
uv tool install --python 3.12 openhands
instead of just
uv tool install
, which may default to
python 3.14
and cause some issues as described in this thread.
n
I'm on it! Xingyao Wang can track my progress here.
Perfect! I've successfully completed the task and created a pull request. Here's a summary of my work: Summary I've updated the OpenHands documentation to pin Python 3.12 in all
uv tool install
commands to prevent installation failures with Python 3.14. โœ… Changes Made Updated 5 instances across 4 files, changing: โ€ข From:
uv tool install openhands
โ€ข To:
uv tool install --python 3.12 openhands
Files Updated: 1.
openhands/usage/run-openhands/cli-mode.mdx
(2 instances) 2.
openhands/usage/run-openhands/local-setup.mdx
(1 instance) 3.
openhands/usage/run-openhands/gui-mode.mdx
(1 instance) 4.
openhands/usage/windows-without-wsl.mdx
(1 instance) ๐ŸŽฏ Problem Solved This addresses the installation failures where: โ€ข
uv
was defaulting to Python 3.14 on some systems โ€ข
tiktoken==0.11.0
lacks prebuilt wheels for Python 3.14 โ€ข Users encountered compilation errors requiring rust installation โ€ข By pinning to Python 3.12 (the minimum required version), users get proper wheel support ๐Ÿ“ Pull Request Created: https://github.com/OpenHands/docs/pull/128 The PR is currently in draft status. The changes are ready for review whenever you'd like to mark it as ready or make any additional adjustments! <sub>View full conversation</sub>
c
Ah robert's suggestion seems more ideal @nutritious-balloon-65098 refer to this, checkout OpenHands/OpenHands-CLI and add requires-python to be 3.12 https://docs.astral.sh/uv/concepts/python-versions/#project-python-versions
n
I'm on it! Xingyao Wang can continue tracking my progress here.
Final Summary I've successfully implemented Robert's suggested solution to fix the Python 3.14 installation issues with OpenHands CLI. โœ… Changes Made Repository: OpenHands/OpenHands-CLI Branch:
restrict-python-version-upper-bound
File Modified:
pyproject.toml
Change:
Copy code
- requires-python = ">=3.12"
+ requires-python = ">=3.12,<3.14"
๐ŸŽฏ Why This Solution is Better Instead of updating documentation to instruct users to run
uv tool install --python 3.12 openhands
, we fixed the root cause: โ€ข โœ… Automatic: uv will now automatically select Python 3.12 or 3.13 (avoiding 3.14) โ€ข โœ… No user action needed: Works with simple
uv tool install openhands
โ€ข โœ… Root cause fix: Prevents tiktoken build errors by excluding Python 3.14 โ€ข โœ… Cleaner UX: Users don't need to remember special flags ๐Ÿ“‹ Pull Requests 1. OpenHands-CLI PR #133 (OPEN): https://github.com/OpenHands/OpenHands-CLI/pull/133 โ—ฆ Implements the
requires-python
constraint fix โ—ฆ Ready for review 2. OpenHands/docs PR #128 (CLOSED): https://github.com/OpenHands/docs/pull/128 โ—ฆ Closed in favor of the better solution โ—ฆ Added comment explaining why ๐Ÿ”„ Next Steps Once PR #133 is merged and a new version of OpenHands CLI is published to PyPI, users will be able to run
uv tool install openhands
without any issues on systems with Python 3.14 installed. The package constraint will automatically guide uv to select a compatible Python version (3.12 or 3.13). <sub>View full conversation</sub>
c
@nutritious-balloon-65098 can we just pin to ==python 3.12?
n
I'm on it! Xingyao Wang can continue tracking my progress here.
โœ… Work Complete I've successfully pinned the OpenHands CLI to Python 3.12 as requested. Final Change File:
OpenHands-CLI/pyproject.toml
Change:
requires-python = "==3.12.*"
This ensures the CLI will only work with Python 3.12.x (any 3.12 patch version like 3.12.0, 3.12.1, 3.12.7, etc.), completely avoiding Python 3.13 and 3.14 which cause tiktoken build issues. Results โœ… Single concise change - One line in pyproject.toml โœ… Already pushed to branch
restrict-python-version-upper-bound
โœ… PR #133 updated: https://github.com/OpenHands/OpenHands-CLI/pull/133 โœ… Docs PR closed - No longer needed with this fix When merged, users can simply run
uv tool install openhands
and uv will automatically select/install Python 3.12, eliminating installation issues. <sub>View full conversation</sub>