Anyone have experience with PyPI packages and entr...
# proj-sdk
q
Anyone have experience with PyPI packages and entrypoints? The V1 CLI has an entrypoint which works locally via
uvx --from . openhands
but doesn't seem to work once the package is published via
uvx --python 3.12 openhands
Could use some help with this https://github.com/All-Hands-AI/OpenHands/blob/main/openhands-cli/pyproject.toml#L25
✅ 1
I'm seeing this error specifically
Copy code
(base) rohitmalhotra@Rohits-Laptop openhands-cli % uvx --python 3.12 openhands
Package `openhands` does not provide any executables.
@nutritious-balloon-65098 please add to the docs page a note that says that temporarily all users need to run
uv run --python 3.12 -m openhands_cli.simple_main
in place of
uv run --python 3.12 openhands
which we investigate this bug
n
I'm on it! Rohit Malhotra can track my progress here.
c
I am seeing this by running
uv tool install openhands
0.0.0 definitely seems suspicious Resolved 1 package in 1ms 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
n
Summary I successfully added temporary CLI workaround notes to the OpenHands documentation as requested. Here's what was completed: Changes Made: 1. ✅ CLI page (cli-mode.mdx): Added prominent warning at the top explaining users should use
uv run --python 3.12 -m openhands_cli.simple_main
instead of
uvx --python 3.12 openhands
2. ✅ Local setup page (local-setup.mdx): Added warning note before CLI installation instructions 3. ✅ GUI mode page (gui-mode.mdx): Updated prerequisite instructions with the workaround command 4. ✅ Windows without WSL page (windows-without-wsl.mdx): Added warning note before CLI installation Key Features: • Made it clear that the workaround applies to all CLI usage throughout the documentation • Used concise warning boxes to make the temporary nature obvious • Updated all references to the CLI command across the documentation • Committed changes with descriptive commit message The documentation now clearly instructs users to use the workaround command while the CLI entrypoint bug is being investigated. Next Steps: Would you like me to: • Push the changes to a new branch and create a pull request? • Keep the changes local for now? • Any other specific Git workflow you prefer? <sub>View full conversation</sub>
q
hmm weird i think the versioning can be explain by https://github.com/All-Hands-AI/OpenHands/pull/11349/files#diff-f303f7100cd87415c15f3c07a5a1ba8cde1fab9575d2652b8a328ba4dd81225b still odd to me that
uv run --python 3.12 -m openhands_cli.simple_main
works normally though
c
uv run
is working from your local repo, no?
q
yep
uv run openhands
works as expected
Hmm this command works
Copy code
uvx --python 3.12 \          
  --with "openhands-sdk @ git+https://github.com/All-Hands-AI/agent-sdk.git@50b094a9#subdirectory=openhands/sdk" \
  --with "openhands-tools @ git+https://github.com/All-Hands-AI/agent-sdk.git@50b094a9#subdirectory=openhands/tools" \
  openhands --help
I'm starting to suspect it has something to do with the agent-sdk dependencies not being published as pypi packages
c
ah interesting and could be likely..
q
ah yeah the problem is
uvx --python 3.12 openhands
is not a pinned version, it tries to install
1.0.1
and
1.0.0
releases, both which fail because agent-sdk hasn't published pypi packages then it ends up installing
0.0.0
version instead which is stable but completely empty package with no entrpoints
i'll put out a patch for this (without requiring agent-sdk packages to be published)
https://github.com/All-Hands-AI/OpenHands/pull/11354 @chilly-france-44439 patch for this
c
Awesome thanks!
q
Copy code
Publishing 2 files to https://upload.pypi.org/legacy/
Uploading openhands-1.0.2-py3-none-any.whl (31.5KiB)
error: Failed to publish `dist/openhands-1.0.2-py3-none-any.whl` to https://upload.pypi.org/legacy/
  Caused by: Upload failed with status code 400 Bad Request. Server says: 400 Can't have direct dependency: openhands-sdk@ git+https://github.com/All-Hands-AI/agent-sdk.git@50b094a92817e448ec4352d2950df4f19edd5a9f#subdirectory=openhands/sdk. See https://packaging.python.org/specifications/core-metadata for more information.
Error publishing the CLI packages with the new changes So we need to cut an agent-sdk release otherwise this will remain an ongoing issue