bishely / one-button-spotify

Simple Raspberry Pi Spotify player built in Python with Spotipy
13 stars 3 forks source link

No forward, xdg-open: 811 : Permission denied #1

Open 70A5 opened 2 years ago

70A5 commented 2 years ago

Hello there, I am not getting forwarded to the link I should paste into the terminal. I get a /usr/bin/xdg-open: 811: : permission denied. this is with both test.py and one-button-spotify.py. Using sudo test.py returns ModuleNotFoundError: No module named 'spotipy', but a pip or pip3 install spotipy it is already there. Looking for some help. Thanks in advance.

bishely commented 2 years ago

Hi,

I'm afraid I'm not sure what's going wrong for you - my best guess is that whichever python you're running isn't the one that pip is managing. I'd recommend setting up a venv and running pip, and the scripts, inside there. You can also skip the pip install git+https://github.com/plamere/spotipy.git step and just issue pip install spotipy

Also please note that pip3/python3 won't work as a lot of this script uses python2 conventions that aren't compatible with python3.