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

Is the Project working in 2024? #74

Open
viktor1234678 opened this issue Nov 11, 2024 · 9 comments
Open

Is the Project working in 2024? #74

viktor1234678 opened this issue Nov 11, 2024 · 9 comments

Comments

@viktor1234678
Copy link

I've been trying to get the project to run since 2021 and it seems to get harder and harder to do so. Following XEROxMEXICANO instructions doesn't work anymore for multiple reasons. 1. Openbox seemingly doesn't use the same process anymore for setup. 2. Spotifys Developer Site has been redesigned and I can't find a way to get the Device ID. 3. The information how to generate a working cache file is all over the place and nothing I tried worked. 4. It's not clear to me if I should use the old spotipy version or the newest one, because I am running on a pi zero 2 so I could use the new one but it seems to work differently.
I am not sure if this is the place to post this but I would love to get this project finally working after so long. If anyone was able to get it working in the last couple of months I would be so thankful if you had some new pointers for me or anything. At this point I would even take a cloned sd card image with the spotify credentials removed if anyone would be willing to send me that.
Thanks in advance for any help

@viktor1234678
Copy link
Author

I have been working on it the whole last day and am stuck again. I can start the program and fetch the data but everytime I try to play a song it tells me "error! no devices". If I have spotify running on my phone I see the songs in currently playing and can pause and resume. I think this is similar to issue #66 but nothing helps. It doesn't show up as a device in spotify on my phone.

@xenon0054
Copy link

xenon0054 commented Nov 12, 2024

Hello, I haven't kept up with the project in a long time. I wasn't aware of the errors in my instructions, so I will be making changes to them later. When I made the instructions, it was the code/ steps that made the program work for me that I found searching. I personally never used the SpotifyPod as a replacement for my phone; I just saw a YouTube video showcasing it and decided to help out.

edit: Later this month, I will be re-making the instructions and figuring out how to get it running; I only have a Raspberry Pi Zero W. I don't have a Pi Zero 2

@viktor1234678
Copy link
Author

@doris1347 are you sure raspotify 0.14 still works? I tried doing it with the latest version like https://github.com/Chickensalad303/SpIpod did. With the newest raspotify I got so far that I could select a song and it would show up on my Phone, but afterwards the connection between my phone and raspotify dies and reconnecting doesn't make me regain control. Thank you guys for still giving advice on this old project. @xenon0054 if you have any questions you can hit me up on Discord, I'd love to help this cool project become more accessible so maybe the next guy doesn't have to suffer.

@doris1347
Copy link
Collaborator

doris1347 commented Nov 12, 2024

@viktor1234678
Your right my "Spot" is no longer working - perhaps something is wrong with librespot which Raspotify is dependent on!
Or perhaps my .cache file token is no longer active, invalid or expired.
I am currently using a zero 2w.

Which version of Raspberry PIOS are you using and is it 32bit or 64 bit?
&
Which version of Raspotify are you using and is it 32bit or 64 bit?

@viktor1234678
Copy link
Author

Right now I am testing on a pi4 where performance isn't important so I am running pi os 64bit (not legacy). For Raspotify I was using the newest version that installs with sudo apt-get -y install curl && curl -sL https://dtcooper.github.io/raspotify/install.sh | sh I don't know if it installs 64 or 32 bit.

@viktor1234678
Copy link
Author

viktor1234678 commented Nov 15, 2024

That's great to hear, that it still works! Will try to install it like you did over the Weekend.

@doris1347
Copy link
Collaborator

doris1347 commented Dec 1, 2024

@viktor1234678

Were you able to get it working?
See Issues #78 #79

@viktor1234678
Copy link
Author

@doris1347 I didn't get around to trying with your new information yet because of uni stress. I'll try next weekend. Thank you for being so kind and helping me.

@doris1347
Copy link
Collaborator

doris1347 commented Dec 25, 2024

On another issue I just experienced the below problem, I have many playlists, some tracks become unavailable or null. spotipypod.py doesn't know what to do with these null tracks and will end up with an error (see below) before even starting ...

TypeError: 'NoneType' object is not subscriptable

or

MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/playlists/3xxXXxxxxxXXxxyyyyYYyyXg/tracks?limit=50&offset=0&additional_types=track (Caused by ResponseError('too many 502 error responses'))

Solution! - find and delete the bad (unavailable or null) Playlist with - https://www.wikihow.com/Delete-a-Playlist-on-Spotify

I used testit.py as a diagnostic tool to aid in finding the bad playlist by deleting some testing and recovering once found when finished testit.py worked as it had in the past:

Another suggestion is to create a file named testit.py with the following 3 lines:

import spotify_manager
from functools import lru_cache
spotify_manager.refresh_data()

Place it in the frontend folder,

and then run it from the command line:

cd retro-ipod-spotify-client/frontend

Then at the command prompt run:

python3 testit.py

This will only work if you created a .cache file, But if you're good to go you should see output to the screen as it downloads playlists, artists, etc.

sudo reboot

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

3 participants