GMP

By Chris Norman, 23 May, 2015

Forum
macOS and Mac Apps

Hi all,
In the absence of spotify accessibility, I have switched over to Google Play Music for my musical needs.

The website is mostly accessible on Windows, but I find it a struggle on OS X. In any case, web apps annoy me, so I give you GMP:

GMP (Google Music Player) is a GUI application written in Python. It is open source, and contributions are welcome ETC.

Unfortunately, because of something which I can't quite pinpoint, I can't make an app bundle or exe of GMP, so you have to run from source. This really isn't as big a thing as you might think. If you put an & after the command it'll go off int the background and you can terminate Terminal. Or you can use tux or screen if you prefer.

Getting GMP:
To get GMP you need to install a couple of things. Honestly, it's so easy, you can probably just paste this shell code into your terminal and rock n roll:

<script>
#First install Home Brew.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Get everything we need:
brew install git hg python wxpython
# Download the gap source:
git clone https://github.com/chrisnorman7/gmp.git
# CD into the gap directory.
cd gmp
# Make sure pip is up-to-date.
pip install -U pip
# Install the required python packages:
pip install -r requirements.txt
<script>

You should now have everything you need for a working copy of GMP.

If you're install on windows, install:
* Python 2.7.9 32-bit (http://www.python.org/download)
* wxPython 32-bit (www.wxpython.org)
* Windows Git (http://msysgit.github.com)

Then follow everything from the git clone downwards.

Running GMP:
To Run GMP, cd into the directory you saved GMP and run:
python main.py

If you want to be able to CMD+Q the terminal (or exit CMD) when GMP is running, the command should be:
python main.py &

If you're running windows you can create a desktop shortcut, and set the target to something like:
c:\python27\pythonw.exe "c:\users\username\gmp\main.py"
And make sure the start in field contains something like "c:\users\username".

This all assumes that your username is simply username... On my system, c:\users\username is replaced by c:\users\chris, but I'm sure you can figure out your own directory names.

unfortunately the closest to a shortcut I can get to on Mac OS X is this:

<script>
#!/bin/bash
cd ~/gmp
git pull
python main.py&
</script>

If you set Terminal Preferences -> Profiles -> Shell -> When Shell Exits: to "Close the window" or "Close if the shell exited cleanly", then you're left with an empty terminal window, and GMP on screen. You can just CMD+q the terminal window.

To update, assuming you've not used the shell script I just wrote above, simply cd into the gap directory, and type:
git pull

I hope you all enjoy GMP. Is is well worth the £10.99 / month, which I was paying for Spotify before.

Google Play Music also has a month free trial, and you can save stuff to a library, which allows a bit more control over your music.

If you like it, please consider adding any of the songs in the Public Transport EP by Last Train Home (my band) to your playlists, and play them a few times so we get some royalties.

That's it: No hidden features (everything's in the menus), no caveats, just raw awesomeness.

It's pretty well stable, I've been using it for ages, and a couple of others have too. There's a wealth of preferences, so if you don't like something, please check the preferences and everything else in the Options menu before submitting problems.

If there are problems, add them as a bug report on Github (www.github.com/chrisnorman7/gmp.git), leave a comment on here, or send me an email (chris.norman2@googlemail.com).

Cheers, and enjoy.

Options

Comments

By chad on Monday, June 29, 2015 - 08:26

hi chris just grabbed the app can't login voiceover isn't accepting my password entry
not sure if this is a bug or not
it don't click when i write also nothing is getting written

By chad on Monday, June 29, 2015 - 08:26

hi when i close google music player voiceover constantly says busy busy busy busy not sure if this is a possible bug
the only way i can close if force quit it

By Chris Norman on Monday, June 29, 2015 - 08:26

You can log in, VoiceOver just doesn't click in the password field, not sure why.

That busy message could be the annoying message I put in about "Are you really sure you want to quit?".

Either press enter while it's busy, or suppress it entirely in the Windows pane of the config.

HTH.

By chad on Monday, June 29, 2015 - 08:26

hi when i enter my password the edit field isn't accepting my input
also when i exit it says are you sure you want to close i hit yes and all voiceover says is busy busy busy busy busy
i have to force quit all the time

By Sergey on Tuesday, September 29, 2015 - 08:26

While I click on provided link to get the app I get the @not "not found" error. Does it mean that in order to use the app I should follow the original instruction and grub everything from github?

Honestly, I get a much better result from running from source (no idea why).

If anything is odd, might try that. I've particularly noticed problems with the lyrics viewer if I'm not running from source.

There is also a problem when deleting stuff from your playlists, but there's nothing I can do about that, it seems to have something to do with the API I'm using, or maybe even Google (doubtful).

Cheers.

By Sergey on Tuesday, September 29, 2015 - 08:26

In reply to by Chris Norman

It works for me. Since I am used to manage all my stuff on Play Music from the mobile apps I was just looking for something to listen to my music on Mac. Your app is doing perfectly for just that. I can see my playlist and listen to them and am very satisfied for the moment. So, thank you very much again, Chris, for your work!

By Chris Norman on Tuesday, September 29, 2015 - 08:26

Aww, that's really nice. I'm glad you like it.

Thanks for the good wishes.