ag2 icon indicating copy to clipboard operation
ag2 copied to clipboard

[Issue]: WSL not found after install

Open highyield3011 opened this issue 2 years ago • 7 comments

Describe the issue

I opened the project in VS Code, and it prompted me to reopen the folder in a dev container. After I clicked "Reopen in Container", it notified me that the container requires Docker and offered to install Docker in WSL. After I clicked "Install", it displayed an error message stating that WSL was not found after the installation. I also tried to install the WSL extension manually. However, after closing VS Code and reopening the project, the same error persisted.

Steps to reproduce

1.Open Vs code. 2.Click "Reopen in Container". 3.Click "Install".

Screenshots and logs

image image image

Additional Information

No response

highyield3011 avatar Dec 04 '24 08:12 highyield3011

@emooreatx @evandavid1 anyone of you could you help take a look at this? Thank you!

qingyun-wu avatar Dec 05 '24 05:12 qingyun-wu

Sure @qingyun-wu

Hi @highyield3011 can you please paste higher rez screenshots, i can't see your command line args. From what you've reported, VS code cannote locate WSL on your system.

Did you already install WSL on your machine before running the Autogen project operations above? If not, this might be the issue. I believe installing the WSL extension in VS Code does not install WSL on your system itself.

Run the following command to confirm whether WSL is installed:

open powershell: wsl --list --verbose

this should indicate if installed.

If it is not, below are the install instructions: (it's very straightforward, a single command) https://learn.microsoft.com/en-us/windows/wsl/install

Best, Evan

evandavid1 avatar Dec 05 '24 22:12 evandavid1

Thanks @qingyun-wu for the coordination.

Hi @evandavid1 , It's my first time to touch WSL on windows so I'm not sure if it has been installed. Below is the snapshot of powershell after running the command: image

highyield3011 avatar Dec 06 '24 05:12 highyield3011

Hi @highyield3011

Thanks for providing your screenshot. It looks like WSL is not installed on your system. The PowerShell output you shared only shows the help text for wsl.exe. When WSL is installed, running the command wsl --list --verbose should produce output similar to this:

NAME            STATE           VERSION
* Ubuntu-20.04    Running         2

To get started, you’ll need to install WSL by following the official Microsoft installation guide: Install WSL on Windows

Begin by opening PowerShell as Administrator and running the command: wsl --install

After completing the initial installation, follow the remaining steps in the guide and verify that WSL 2 is running properly.

Once you’ve successfully installed WSL and confirmed installation, you’ll also need Docker Desktop for Windows if it isn’t already installed. You can find Docker's installation guide here: Install Docker Desktop on Windows

Please go through the installation steps and let us know if you encounter any specific issues.

If you do run into further issues, it might be helpful to provide more details about the specific AutoGen project you're attempting to run.

Best regards, Evan

evandavid1 avatar Dec 07 '24 07:12 evandavid1

Hi @highyield3011 Wanted to check in with you and see how this is going. I'd like to go ahead and close the issue, since it doesn't appear to be an AutoGen specific problem. If you believe otherwise, please let me know.

Thanks, Evan

evandavid1 avatar Dec 11 '24 06:12 evandavid1

@qingyun-wu @evandavid1 Hi Qingyun and Evan, thanks a lot for your kind help. Please close this issue. I need to investigate the environment setup myself first.

highyield3011 avatar Dec 11 '24 06:12 highyield3011

Hi @highyield3011

Thanks for the update. Glad we could help point you in the right direction. Let us know if there’s anything specific you need from us later on. Best of luck with your setup.

Best regards, Evan

evandavid1 avatar Dec 11 '24 19:12 evandavid1