wooden-umbrella-84098
11/24/2025, 4:01 PMuv
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 ๐งตwooden-umbrella-84098
11/24/2025, 4:01 PM(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) โchilly-france-44439
11/24/2025, 4:03 PMelegant-branch-54423
11/24/2025, 4:04 PMstocky-piano-41965
11/24/2025, 10:03 PMuv 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.stocky-piano-41965
11/24/2025, 10:15 PM~/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. ๐wooden-umbrella-84098
11/25/2025, 2:13 PMchilly-france-44439
11/25/2025, 2:47 PMuv 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.nutritious-balloon-65098
11/25/2025, 2:47 PMnutritious-balloon-65098
11/25/2025, 2:51 PMuv 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>chilly-france-44439
11/25/2025, 2:52 PMnutritious-balloon-65098
11/25/2025, 2:52 PMnutritious-balloon-65098
11/25/2025, 2:56 PMrestrict-python-version-upper-bound
File Modified: pyproject.toml
Change:
- 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>chilly-france-44439
11/25/2025, 2:58 PMnutritious-balloon-65098
11/25/2025, 2:58 PMnutritious-balloon-65098
11/25/2025, 3:00 PMOpenHands-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>