All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
35.38k stars 4k forks source link

Why do I "must use WSL"? #3810

Closed MeNicefellow closed 1 month ago

MeNicefellow commented 2 months ago

You already use docker. Then why WSL as well??

Polygons1 commented 2 months ago

I am using it on Windows without WSL

MeNicefellow commented 2 months ago

I am using it on Windows without WSL

They should update their README. Cuz they say for Windows, WSL must be used.

enyst commented 1 month ago

WSL is necessary, sorry, for the project to work well. WSL is a Linux system for Windows, and that's what the project is compatible with. openhands works on Mac, Linux, and as for Windows, under WSL.

In practice, it might or not work without WSL, but we don't support that configuration, we don't have it and don't test on it I believe, and we might not be able to help you with it. I suggest to install WSL and use openhands on it, or a regular Linux.

MeNicefellow commented 1 month ago

WSL is necessary, sorry, for the project to work well. WSL is a Linux system for Windows, and that's what the project is compatible with. openhands works on Mac, Linux, and as for Windows, under WSL.

In practice, it might or not work without WSL, but we don't support that configuration, we don't have it and don't test on it I believe, and we might not be able to help you with it. I suggest to install WSL and use openhands on it, or a regular Linux.

Why doesn't Docker only work?

enyst commented 1 month ago

From what I recall, we've seen problems from the fact that openhands mounts a folder on the local machine, to be its workspace, where it creates files, edits files, deletes stuff etc. On a Windows machine, we have seen issues with libraries, function calls, etc, necessary to do stuff like that. Also, the user the app runs as, the permissions on those files etc, might or not work. I could perhaps add that openhands has two docker containers, one for the external app to run, and another, the runtime that executes the actions.

I believe there are users who use it nevertheless, on Windows without WSL, or have in the past. I don't have a Windows machine and I'm not sure if/what they needed to do or work around. If you want to try it, please feel free to, and I believe we would accept documentation on it. We just don't support it or recommend it.

Polygons1 commented 1 month ago

WSL is necessary, sorry, for the project to work well.

I've tried with WSL first and WSL crashed, that's the only reason I am using it on Windows

enyst commented 1 month ago

@Polygons1 Could you please open an issue and fill in the template? As complete as possible, with all information and logs you can, it helps to figure out the problem.

Polygons1 commented 1 month ago

the problem is that there is nothing, no logs, nothing, just a shutdown of wsl.

enyst commented 1 month ago

A shutdown of WSL or do you mean a shutdown of the openhands application?

Polygons1 commented 1 month ago

of WSL and I think that’s a Docker issue and not OpenHands

enyst commented 1 month ago

Yes, that's likely. You can install docker on WSL, and run openhands in WSL. I understand it can work with docker on Windows and openhands in WSL, I've never tried it, but others have.

Whichever solution you choose, can you try to fix docker so that it works normally then run openhands?

Polygons1 commented 1 month ago

I think I’ve fixed it now, I don’t know what I did but it worked