WSL doesn't redirect me to google chrome

In order for my script to run successfully, I need to insert the URL of the site that the API redirected me to. Everything works in my Windows Powershell, I run my code and my Google Chrome tab opens, I successfully copy the address and you’re done. But when I run this code on WSL(Windows Subsystem for Linux) absolutely nothing happens. Perhaps he has some permissions to use Chrome? He certainly has access to the Internet.

I tried searching for "Chrome WSL Access" but didn’t find anything helpful.

>Solution :

It looks like you’re running some code that eventually calls the spotipy/, which has this line in it:

def _open_auth_url(self):

I suspect the issue is due to webbrowser not currently working with WSL, which is tracked in this issue:

Leave a Reply