PyBites-Open-Source / eatlocal

This package helps users solve PyBites code challenges on their local machine.
MIT License
20 stars 9 forks source link

`eatlocal download 27` not working #31

Closed Zaubeerer closed 2 years ago

Zaubeerer commented 2 years ago

While on my mac eatlocal download works fine, on my windows machine I get the following error:

image

rhelmstedter commented 2 years ago

Hi, glad it works on your mac.

Which terminal are you using on windows? e.g., WSL, Powershell? From the readme:

eatlocal does not work with WSL2. There seems to be an issue between WSL2 and google-chrome and chromedriver. Perhaps this will be resolved in the future with WSLg. For now, there is a workaround: Follow instructions for Windows users except install eatlocal globally. Using PowerShell or Windows Terminal, navigate to your WSL distribution's directory that holds your repository and initialize eatlocal from there. Now just download and submit through your external PowerShell command line instead of your bash terminal. Everything should still behave the same, you just can't use your WSL shell or your integrated terminal in VS Code.

Given that your credentials work on your mac and the error is related to downloading, it is probably a network/chromedriver problem. Can you confirm that your version of chromedriver matches your version of chrome on your windows machine?

Zaubeerer commented 2 years ago

I updated both via choco upgrade chromedrive and choco upgrade googlechrome to the latest version 106.0.5249.119.

However, I still get the following error:

(biteme) PS C:\Users\rbeer> eatlocal download 1
⠏ Downloading Bite 1
DevTools listening on ws://127.0.0.1:50358/devtools/browser/1e18c6f0-cd5c-4f7d-9114-2d2455f3cd2d
⚠ Bite 1 was not downloaded. Ensure you are connected to the internet 
and your PyBites credentials are valid.
⚠ Missing ZIP archive for bite 1: pybites_bite1.zip
Zaubeerer commented 2 years ago

Just checked the eatlocal config file and it turned out that the password was not set properly.

Probably a terminal related copy paste error 🤔

Adding the pybitees password manually solved the problem!