Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mercedes33

macrumors member
Original poster
Aug 15, 2021
46
28
Germany
Hello Guys
I know there was Spotify supported too PowerPCs until 2018. now it’s out of support. It I possible to code Spotify with the api to PowerPC again?
Would be nice if someone could code this
 
If you are a premium member you can install despotify via macports.


Cheers

Have you actually succeeded in making this work? I compiled successfully with macports but i think the implementation is too old and it does not work anymore. When i input my user/pass it just freezes.
 
  • Like
Reactions: juanstdio
I dont have a premium account to test it. There are other clients available. This one seems to just require python.
Did anyone test this one? I get an error trying to start it :-(

Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/spotify-terminal.py", line 4, in <module> __import__('pkg_resources').run_script('spotify-terminal==0.15.2', 'spotify-terminal.py') File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 651, in run_script self.require(requires)[0].run_script(script_name, ns) File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 1448, in run_script exec(code, namespace, namespace) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/EGG-INFO/scripts/spotify-terminal.py", line 5, in <module> main() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/main.py", line 97, in main api = ApiClass(args.username, args.use_cache) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/api.py", line 124, in __init__ self.auth = Authenticator(username) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 46, in __init__ self._init() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 109, in _init line = "".join([ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 110, in <listcomp> chr(i-1993) for i in struct.unpack("64I", f.readline()) ValueError: chr() arg not in range(0x110000)
 
  • Like
Reactions: juanstdio
Did anyone test this one? I get an error trying to start it :-(

Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/spotify-terminal.py", line 4, in <module> __import__('pkg_resources').run_script('spotify-terminal==0.15.2', 'spotify-terminal.py') File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 651, in run_script self.require(requires)[0].run_script(script_name, ns) File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 1448, in run_script exec(code, namespace, namespace) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/EGG-INFO/scripts/spotify-terminal.py", line 5, in <module> main() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/main.py", line 97, in main api = ApiClass(args.username, args.use_cache) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/api.py", line 124, in __init__ self.auth = Authenticator(username) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 46, in __init__ self._init() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 109, in _init line = "".join([ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 110, in <listcomp> chr(i-1993) for i in struct.unpack("64I", f.readline()) ValueError: chr() arg not in range(0x110000)

I got the same error, tried with the python2 version but pip is not working anymore :(
 
Did anyone test this one? I get an error trying to start it :-(

Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/spotify-terminal.py", line 4, in <module> __import__('pkg_resources').run_script('spotify-terminal==0.15.2', 'spotify-terminal.py') File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 651, in run_script self.require(requires)[0].run_script(script_name, ns) File "/Users/Mac/Library/Python/3.8/lib/python/site-packages/pkg_resources/__init__.py", line 1448, in run_script exec(code, namespace, namespace) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/EGG-INFO/scripts/spotify-terminal.py", line 5, in <module> main() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/main.py", line 97, in main api = ApiClass(args.username, args.use_cache) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/api.py", line 124, in __init__ self.auth = Authenticator(username) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 46, in __init__ self._init() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 109, in _init line = "".join([ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotify_terminal-0.15.2-py3.8.egg/spotify_terminal/authentication.py", line 110, in <listcomp> chr(i-1993) for i in struct.unpack("64I", f.readline()) ValueError: chr() arg not in range(0x110000)
Same thing here. Running it with python38. I tried Spotify-tui on an intel mac and it's great but it uses "rust" programming language which is x86 or ARM only. Spotify-terminal seems to be still maintained and the "chr() arg not in range" issue has been submitted on the github page so maybe it will be fixed in the near future.
 
  • Like
Reactions: juanstdio
I need help please. I found another Spotify terminal implementation, it's on github: spotui. It uses python so it should be usable in Leopard. I have MacPorts installed, i ran "pip install spotui", it installed properly i think... But now i want to run it. On the main github page there's only these 2 steps: pip install the run spotui. I just can't find where it is, where to run it from and how. I can see that everything i build with python goes there (i think!):

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages

That's where it tells me it is when i type: pip show spotui

There's a spotui folder there then what?

Picture 1.png
 
  • Like
Reactions: juanstdio
Starting to figure things out slowly. I think my PATHs were not correct and not pointing to the python directories.

added this and now i get something other than command not found: export PATH="/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages:$PATH"

It doesn't say "macrumors newbie" under my username for nothing!
 
This almost works: https://github.com/ceuk/spotui

I had to create a hidden .config/spotui/.spotuirc folder with a config file in my user folder. Inside that file i put my Spotify username (email), client ID and secret ID. All of this is generated when creating an app in the spotify developer page. It's almost running, i get this:

localhost:~ Mac$ spotui
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/spotui", line 11, in <module>
load_entry_point('spotui==0.1.19', 'console_scripts', 'spotui')()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/spotui/__main__.py", line 17, in main
curses.wrapper(App)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/spotui/src/ui.py", line 8, in __init__
self.main_form = MainForm(stdscr)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/spotui/src/MainForm.py", line 65, in __init__
self.components[0].activate()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/spotui/src/component.py", line 18, in activate
curses.curs_set(0)
_curses.error: curs_set() returned ERR
 
Ok! It's working but not with Mac Terminal? It works with iTerm2.

Picture 1.png


That's cool but i have yet to find how to make the sound output through the iMac speakers. Maybe this is just a remote interface afterall...

EDIT: Well yeah... This is just a remote control. It sees my Pioneer amp and i can control that. But as far as being able to stream from Spotify directly to MacOS PPC, i don't think it's possible right now. I think that the most probable way that Spotify will play on a PPC Mac is through "spotifyd" if it can be built for PPC. On Linux i tried to use the latest Firefox ESR on Void Linux and use the Spotify web player but the lack of DRM (widevine plugin) is a problem.
 
Last edited:
Well it's fixed but again, it's a nice terminal implementation of a Spotify remote control. I can choose devices to play on but there is no code to stream directly to the PPC Mac. We would need to compile something like "spotifyd" or some other library that can decode the music.
Picture 1.png
 
I went down a rabbit hole lately about that Spotify dillema... I tried to think of all possible ways Spotify could play an a now old and unsupported platform such as a PPC Mac. These are stupid ideas and let's be clear: i absolutely have no need to use one of my old Macs to play Spotify music, but just for fun as a challenge i want to be able to do so.

I installed Virtual PC 7 and installed Windows XP (could have installed Win7 but whatever...). Spotify still works on XP even though it's close to not working anymore. But that did not work because VP7 does not emulate SSE2 and Spotify now requires it (i think that's the issue). So i tested the last version that did not seem to require SSE2 and it installed but would not start.

Is there an x86 emulator on PPC that emulates a cpu with SSE2 instructions?

I installed the Q.app emulator. Installing XP took almost 2 days! It is unbearably slow. I haven't tested if SSE2 is emulated because even if it does, which i doubt it does, it would be totally unusable.

Next i installed XP on iEmulator which also uses a build of qemu version 0.6.0 i think. That emulator feels a bit more responsive but not enough.

So far i did not get to try to install Spotify on these yet but it's pointless. This whole thing is pointless anyway! But i'm having fun and that's what counts.

But for now it's either compiling spotifyd (i think it's coded in something that is not available on PPC mac) OR:

You buy a small device with Spotify capabilities that has a headphone jack output, connect it to the Mac's line-in and use an app that passes-through the music. You control that device with something like Spotify-terminal.
 
  • Like
Reactions: exProfesso
Well it's fixed but again, it's a nice terminal implementation of a Spotify remote control. I can choose devices to play on but there is no code to stream directly to the PPC Mac. We would need to compile something like "spotifyd" or some other library that can decode the music. View attachment 1952892

Yup, same result. I can control my devices, but not stream on the PPC. For me, this is just what I need, because I have chromecast etc all around the house ;-)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.