-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
The CLI installs the openhands/tool project from the agent-sdk dependency. This contains the tmux library. However, users still need tmux on their local machine to run the CLI.
The error throw is
Available options:
1. Start Agent Chat - Interactive conversation with AI agent
2. Show TUI Demo - Display TUI components
3. Exit
Select an option (1-3): 1
Error setting up agent:
Traceback (most recent call last):
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/openhands_cli/agent_chat.py", line 74, in setup_agent
bash = BashExecutor(working_dir=cwd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/openhands/tools/execute_bash/impl.py", line 14, in __init__
self.session.initialize()
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/openhands/tools/execute_bash/bash_session.py", line 65, in initialize
self.session = self.server.new_session(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/libtmux/server.py", line 517, in new_session
if self.has_session(session_name):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/libtmux/server.py", line 342, in has_session
if exact and has_gte_version("2.1"):
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/libtmux/common.py", line 354, in has_gte_version
return get_version() >= LooseVersion(min_version)
^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/libtmux/common.py", line 284, in get_version
proc = tmux_cmd("-V")
^^^^^^^^^^^^^^
File "/Users/rohitmalhotra/Documents/Openhands/OpenHands-CLI/.venv/lib/python3.12/site-packages/libtmux/common.py", line 225, in __init__
raise exc.TmuxCommandNotFound
libtmux.exc.TmuxCommandNotFound
We should catch this exception and throw a user friendly warning which explains that tmux must be installed locally
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels