OpenHands
OpenHands copied to clipboard
Fix environmental issues related to python/pip/brew/npm etc.
- use homebrew to install pipenv on macOS, fix https://github.com/OpenDevin/OpenDevin/issues/544
- use
python3ifpythonis not available (e.g. on macOS)
As someone who constantly has a broken python install on OSX I appreciate this PR.
Won't this require that the user already have homebrew installed? I'm not sure it ubiquitous enough to be an assumed dependency.
Indirectly Related: https://github.com/OpenDevin/OpenDevin/pull/481
I feel like we should try for pip install pipenv before falling back to homebrew. But maybe it doesn't matter?
As someone who constantly has a broken python install on OSX I appreciate this PR.
Won't this require that the user already have homebrew installed? I'm not sure it ubiquitous enough to be an assumed dependency.
Indirectly Related: #481
Good suggestion, currently trying to check for the existence of brew before use, if not, remind the user to install.
I think it makes sense to do this, the current overall logic is:
- Check whether python or python3 exists, prioritize python and fallback to python3 if neither exists, then give an error
- Check if pipenv exists, if it does, skip it
- macOS users try to install pipenv with
pip, if it fails, fallback to usehomebrew(if the current user has not installedhomebrew, it will fail and remind the user) - Other operating systems still use
pipfor installation
Added additional detection for npm and nodejs for https://github.com/OpenDevin/OpenDevin/issues/634
Simillar issue.
My wsl is saying cannot find python. Had to find and replace python to python3 in Makefile to fix this.
Maybe do something like alias python=python3 to fix this? (Did not work when I added this line in makefile for some reason)
can you pls pull the new main and try?
can you pls pull the new main and try?
The main branch has already switched to poetry, it seems this PR is no longer necessary, I'll close it for now.
Enjoy! if you faced any issues let me know 👌
Enjoy! if you faced any issues let me know 👌
Now there is no python not found error. But the build is never finishing. My laptop is running out of storage because this project is installing gigabytes of random nvidia packages for no reason as I only intend to try out opendevin with my OpenAI keys and my laptop has no external gpu to begin with (using APU).
And I am not sure why do you need GPU support to being with when you are supposed to host the models elsewhere then use it with OpenDevin.
Can you create a new issue for that pls I can try to figure it out
@dorbanianas #766