quick-window-91705
10/14/2025, 3:07 PMuvx --python 3.12 openhands as a method of running the CLI which doesn't work so far
More context in the proposed fix here, which sadly didn't end up working
https://github.com/All-Hands-AI/OpenHands/pull/11354quick-window-91705
10/14/2025, 3:15 PMuvx --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" \
openhandsquick-window-91705
10/14/2025, 3:30 PMchilly-france-44439
10/14/2025, 4:05 PMchilly-france-44439
10/14/2025, 4:06 PMquick-window-91705
10/14/2025, 4:07 PMchilly-france-44439
10/14/2025, 4:10 PMwooden-umbrella-84098
10/14/2025, 4:41 PMchilly-france-44439
10/14/2025, 4:51 PMopenhands-sdk openhands-tools openhands-workspace and openhands-agent-server pypichilly-france-44439
10/14/2025, 5:09 PMopenhands-sdk and openhands-tools now with version 1.0.0a1quick-window-91705
10/14/2025, 7:31 PMError: cannot import name 'Message' from 'openhands.sdk' (unknown location)
Traceback (most recent call last):
File "/Users/rohitmalhotra/Documents/Openhands/Openhands/openhands-cli/openhands_cli/simple_main.py", line 42, in main
from openhands_cli.agent_chat import run_cli_entry
File "/Users/rohitmalhotra/Documents/Openhands/Openhands/openhands-cli/openhands_cli/agent_chat.py", line 10, in <module>
from openhands.sdk import (
ImportError: cannot import name 'Message' from 'openhands.sdk' (unknown location)
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/rohitmalhotra/Documents/Openhands/Openhands/openhands-cli/openhands_cli/simple_main.py", line 59, in <module>
main()
File "/Users/rohitmalhotra/Documents/Openhands/Openhands/openhands-cli/openhands_cli/simple_main.py", line 42, in main
from openhands_cli.agent_chat import run_cli_entry
File "/Users/rohitmalhotra/Documents/Openhands/Openhands/openhands-cli/openhands_cli/agent_chat.py", line 10, in <module>
from openhands.sdk import (
ImportError: cannot import name 'Message' from 'openhands.sdk' (unknown location)chilly-france-44439
10/14/2025, 7:59 PMchilly-france-44439
10/14/2025, 7:59 PMquick-window-91705
10/14/2025, 7:59 PMrel-cli-1.0.2chilly-france-44439
10/14/2025, 8:01 PMquick-window-91705
10/14/2025, 8:10 PMuvx --with 'openhands-sdk==1.0.0a1' --with 'openhands-tools==1.0.0a1' openhands --helpchilly-france-44439
10/14/2025, 8:13 PMchilly-france-44439
10/14/2025, 8:13 PMchilly-france-44439
10/14/2025, 8:13 PMchilly-france-44439
10/14/2025, 8:33 PMopenhands.sdk as the import path is making it pretty hard to package it properly š
looking into it now
When i got the packaging working, the existing code won't workchilly-france-44439
10/14/2025, 9:47 PMchilly-france-44439
10/16/2025, 6:15 PMquick-window-91705
10/16/2025, 6:21 PMfrom openhands import version will have to be from openhands.version import versionquick-window-91705
10/16/2025, 6:21 PMchilly-france-44439
10/16/2025, 6:24 PMquiet-night-61895
10/16/2025, 6:24 PM__init__ file there that must be omitted. Maybe a test can cover thatchilly-france-44439
10/16/2025, 6:24 PMquiet-night-61895
10/16/2025, 6:25 PMe.g., version from the sdk, app, cliThat sounds reasonable
quick-window-91705
10/16/2025, 6:26 PMopenhands
This project needs a version number which is typically defined in the __init__.py file but seems like that won't be possible (possibly due to namespace conflicts)