dupontgu / retro-ipod-spotify-client

The software that powers the sPot: a 4th generation "Click Wheel" iPod with a full Spotify client.
Apache License 2.0
893 stars 90 forks source link

TclError: no display name and no $DISPLAY environment variable #10

Closed chonnymon closed 3 years ago

chonnymon commented 3 years ago

Hello, Firstly thanks for sharing this awesome project.

I receive the error below after trying to run python3 spotifypod.py This error appeared after I entered the redirected URL

Can anyone point me in the right direction to get past this?

Traceback (most recent call last): File "spotifypod.py", line 543, in <module> app = tkinterApp() File "spotifypod.py", line 88, in __init__ tk.Tk.__init__(self, *args, **kwargs) File "/usr/lib/python3.7/tkinter/__init__.py", line 2023, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable

Thanks

dupontgu commented 3 years ago

I think I remember seeing this at some point. Are you SSHing into the pi? python3 spotifypod.py needs to be run by a non-remote user, and the pi needs to detect a display (though it will work if you enable the composite video output). If that doesn't solve it, I'd start poking around for related issues with tkinter - this is thrown from that code, not mine. Hope that helps!

chonnymon commented 3 years ago

Thanks for your quick reply, Yes I was SSHing into the pi, after running the script from root@ I have got the UI to display on my monitor, it will show what I currently have playing under 'now playing' on my account but doesn't display anything under artists/albums/new releases

rsappia commented 3 years ago

@chonnymon run refresh_data() method and it will sync all your content ;)