Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on running the notebooks on Windows 11 #12

Open
LTorrao opened this issue May 18, 2023 · 3 comments
Open

Notes on running the notebooks on Windows 11 #12

LTorrao opened this issue May 18, 2023 · 3 comments

Comments

@LTorrao
Copy link

LTorrao commented May 18, 2023

Hello,

I would like to list possible necessary steps for those who want to run the notebooks on Windows 11.

You need to install Docker Desktop and follow the instructions.

Everything should run well up until downloading the data, here we must do something.

In my case, my additional steps were:

1- on the cloned repo directory run in terminal: "wsl -l"

You need it to choose Ubuntu as default, so that it shows:

Ubuntu (Default)
docker-desktop
docker-desktop-data

1.a - If you do not have ubuntu, run "wsl --install"

1.b after Ubuntu has installed, run "wsl -s Ubuntu" to make it default

2 - Go to Docker Desktop' settings and turn on this option -> Add the *.docker.internal names to the host's etc/hosts file (Requires password)

3 - Before downloading the data, understand that some scripts have different DOS/UNIX linebreaks, which means you will have to fix such scripts' linebreaks.

One way of doing this is by installing and running dos2unix on the scripts (as explained here: https://stackoverflow.com/questions/11616835/r-command-not-found-bashrc-bash-profile ).

So, first, "apt install dos2unix"

And then run, for instance, "dos2unix scripts\downloaders\download_bach_cello_data.sh"

4 - you can now download the data by running:

bash scripts/download.sh faces
bash scripts/download.sh bricks
bash scripts/download.sh recipes
bash scripts/download.sh flowers
bash scripts/download.sh wines
bash scripts/download.sh cellosuites
bash scripts/download.sh chorales

I hope this can help anyone running on Windows, I have written this from memory, so there might typo/ missing detail.

Thank you

@Ahtesham519
Copy link

I still receive the errors running in the windows 11 , even after installing the doker env
Below is the error i receive .,
Things i tried;
1- manually giving port ie $8000:$8000 or $$8000: $$8000 to the jupyter lab and still not resolve the issue.
Kindly help

Screenshot 2023-05-22 015117

@LTorrao
Copy link
Author

LTorrao commented May 24, 2023

I am not sure, but I do remember having this same error ("items[0,1] must be unique") because I had forgotten to add my kaggle username and password to the .env file. Could it be it for you as well, @Ahtesham519 ?

@Ahtesham519
Copy link

Yup its now solved for me , first time using docker .
wsl_update_x64.msi
I receive the error to update my "wsl" for my pc ,which i did and the second resolve was from you creating the env and updating my credential for Kaggle.
Happy learning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants