Getting an error when trying to start the OpenHand...
# dev-help
f
Getting an error when trying to start the OpenHands CLI ๐Ÿ˜ข
Copy code
ERROR:root:  File "/Users/.../Library/Caches/pypoetry/virtualenvs/openhands-ai-q6lpIkNh-py3.13/bin/openhands", line 3, in <module>
    from openhands.cli.main import main

ERROR:root:<class 'ImportError'>: cannot import name 'main' from 'openhands.cli.main' (/Users/.../Desktop/All Hands AI/OpenHands/openhands/cli/main.py)
Any quick fixes?
l
What command did you run?
And on what version?
c
Can you reinstall it?
๐Ÿ‘€ 1
This PR changed the command mapped in pyproject.toml https://github.com/All-Hands-AI/OpenHands/pull/9783/files
f
What command did you run?
openhands
(already had it installed via
pip
)
And on what version?
v0.49.1
Can you reinstall it?
What's the best way to reinstall it? I've run
pip uninstall openhands-ai && pip install openhands-ai
, it works but still on v0.49.1 I have to run
uvx --python 3.12 --from openhands-ai openhands
to use the latest version
l
Hmm, it must be finding a version other than the one installed through pip
c
yeah i think using uvx is in general a much better experience for me ๐Ÿ™‚