jwdempsey / GoogleMusic.bundle

Plex Google Music Plugin
65 stars 18 forks source link

"This channel is not responding." #12

Open sewpafly opened 9 years ago

sewpafly commented 9 years ago

Everything has been working great for 6 months, then today...

2015-05-26 18:00:01,678 (1308) :  CRITICAL (core:572) - Exception (most recent call last):
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
    result = f(**d)
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\handlers\base.py", line 111, in call
    result = self.func(*args, **kwargs)
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Code\__init__.py", line 47, in MainMenu
    API.authenticate(Prefs['email'], Prefs['password'])
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 66, in authenticate
    self._set_all_access()
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 38, in _set_all_access
    settings = self._webclient._make_call(webclient.GetSettings, '')
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\clients\shared.py", line 80, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\protocol\shared.py", line 208, in perform
    response = session.send(req_kwargs, cls.required_auth)
  File "C:\Users\xxx\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\session.py", line 81, in send
    raise NotLoggedIn
NotLoggedIn

Unsure how to debug this. I logged in with a new app specific password and still have this error. I know that the web interface recently changed, so I wonder if whatever library you are using needs to change as well.

shoguevara commented 9 years ago

Seems like the API has changed as well. We are starting to get more issue reports https://forums.plex.tv/index.php/topic/110896-rel-google-music-channel/?p=940629

jwdempsey commented 9 years ago

I will take a look at it this week.

shoguevara commented 9 years ago

Any news?

jwdempsey commented 9 years ago

Unfortunately not yet. I don't have a GPMAA account anymore so it might be a little difficult to get addressed. I will let you know.

Slinkynose commented 9 years ago

This is a major bummer. Please let me know if there is any way I can help.

JonathanAlumbaugh commented 9 years ago

I'd be glad to throw a few bucks towards your GMPAA account if that'd help.

Slinkynose commented 9 years ago

Yes, count me in also. Would love to donate for further development.

ghost commented 9 years ago

Third that.

shoguevara commented 9 years ago

+1

jwdempsey commented 9 years ago

I have started the process of getting this fixed. I am running into some environmental issues as of now but I am making some progress. I truly appreciate everyone wanting to donate for further development but I don't think thats necessary as of now. I'm thinking I can sign up for a 30 day free trial once I've straightened out my other issues.

ghost commented 9 years ago

May have it been a regression on Google's end that they have since fixed? Just checked the channel today and it seems to be working :O

sewpafly commented 9 years ago

Too soon, I can view the artwork and browse stations, but playing the music doesn't work.

airikka commented 9 years ago

How is it going? Please tell us if we can help you somehow.

MarkBot commented 9 years ago

up and running hear ! :)

JonathanAlumbaugh commented 9 years ago

Currently working for me, and it's AWESOME! Thanks @jwdempsey!

jwdempsey commented 9 years ago

I actually haven't made much progress on this. I'm still having some environmental issues that are somewhat unrelated. It sounds like it might be working for some folks but not for others. My plan is still get this plugin updated to use the very latest gmusicapi which should make this work for everyone.

airikka commented 9 years ago

Thanks @jwdempsey!

shoguevara commented 9 years ago

Now the plugin starts, shows playlists and albumarts, but nevertheless it doesn't play any audio =( Seems like I got a bit different events in logs. BTW I tried to simply replace gmusicapi with new one and the plugin stopped working, so I had to revert to the bundled one. Here are my plugin logs:

2015-06-21 14:46:08,033 (27a4) :  CRITICAL (core:572) - Exception (most recent call last):
  File "C:\Users\MyUsername\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
    result = f(**d)
  File "C:\Users\MyUsername\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Code\__init__.py", line 447, in PlayAudio
    song_url = API.get_stream_url(storeId)
  File "C:\Users\MyUsername\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 301, in get_stream_url
    stream_url = self._mobileclient.get_stream_url(id, self._device)
  File "<string>", line 2, in get_stream_url
  File "C:\Users\MyUsername\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\utils\utils.py", line 288, in wrapper
    return function(*args, **kw)
  File "C:\Users\MyUsername\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\clients\mobileclient.py", line 235, in get_stream_url
    if len(device_id) == 16 and re.match('^[a-z0-9]*$', device_id):
TypeError: object of type 'NoneType' has no len()

2015-06-21 14:46:08,036 (27a4) :  DEBUG (runtime:918) - Response: [500] 1331 bytes

And here are PMS logs:

Jun 21, 2015 15:02:29:306 [9752] DEBUG - Request: [192.168.93.104:36460] GET /music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL (2 live)
Jun 21, 2015 15:02:29:306 [9752] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 114 times.
Jun 21, 2015 15:02:29:322 [9752] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL
Jun 21, 2015 15:02:29:322 [9752] DEBUG - HTTP requesting to: http://127.0.0.1:13107/music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL
Jun 21, 2015 15:02:30:150 [9752] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 200, with 358222 bytes of content.
Jun 21, 2015 15:02:30:150 [5428] DEBUG - Completed: [192.168.93.104:36460] GET /music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL (2 live) 842ms 358412 bytes 200
Jun 21, 2015 15:02:31:104 [4536] DEBUG - Request: [192.168.93.111:53361] GET /photo/:/transcode/768x768/http%3A%2F%2F127.0.0.1%3A32400%2Fmusic%2Fgooglemusic%2Fgetstationtracks%3Fname%3DI%2527m%2BFeeling%2BLucky%2BRadio%26id%3DIFL%2F?url=http%3A%2F%2F127.0.0.1%3A32400%2Fmusic%2Fgooglemusic%2Fgetstationtracks%3Fname%3DI%2527m%2BFeeling%2BLucky%2BRadio%26id%3DIFL%2F&width=768&height=768 (2 live) GZIP
Jun 21, 2015 15:02:31:120 [4536] DEBUG - Photo transcoder: Request for url [http://127.0.0.1:32400/music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL/] (is local: 1 upscaled: 0)
Jun 21, 2015 15:02:31:120 [4536] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 115 times.
Jun 21, 2015 15:02:31:120 [4536] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL/
Jun 21, 2015 15:02:31:120 [4536] DEBUG - HTTP requesting to: http://127.0.0.1:13107/music/googlemusic/getstationtracks?name=I%27m+Feeling+Lucky+Radio&id=IFL/
Jun 21, 2015 15:02:31:213 [4536] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 500, with 1926 bytes of content.
Jun 21, 2015 15:02:31:213 [4536] DEBUG - Calling back into ourselves for photo to transcode, optimizing the process (status: 500)
Jun 21, 2015 15:02:31:213 [5428] DEBUG - Completed: [192.168.93.111:53361] GET /photo/:/transcode/768x768/http%3A%2F%2F127.0.0.1%3A32400%2Fmusic%2Fgooglemusic%2Fgetstationtracks%3Fname%3DI%2527m%2BFeeling%2BLucky%2BRadio%26id%3DIFL%2F?url=http%3A%2F%2F127.0.0.1%3A32400%2Fmusic%2Fgooglemusic%2Fgetstationtracks%3Fname%3DI%2527m%2BFeeling%2BLucky%2BRadio%26id%3DIFL%2F&width=768&height=768 (2 live) GZIP 101ms 342 bytes 404
Jun 21, 2015 15:02:32:339 [9752] DEBUG - Request: [192.168.93.111:53364] GET /music/googlemusic/playaudio.mp3?storeId=Tguxi3rdumiotasi6k4flsv6yjq&id=0 (3 live)
Jun 21, 2015 15:02:32:339 [9752] DEBUG - Request range: 0 to 1
Jun 21, 2015 15:02:32:339 [9752] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 116 times.
Jun 21, 2015 15:02:32:339 [9752] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic/playaudio.mp3?storeId=Tguxi3rdumiotasi6k4flsv6yjq&id=0
Jun 21, 2015 15:02:32:339 [9752] DEBUG - HTTP requesting to: http://127.0.0.1:13107/music/googlemusic/playaudio.mp3?storeId=Tguxi3rdumiotasi6k4flsv6yjq&id=0
Jun 21, 2015 15:02:32:354 [9752] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 500, with 1331 bytes of content.
Jun 21, 2015 15:02:32:354 [5428] DEBUG - Completed: [192.168.93.111:53364] GET /music/googlemusic/playaudio.mp3?storeId=Tguxi3rdumiotasi6k4flsv6yjq&id=0 (3 live) 18ms 1517 bytes 500
airikka commented 9 years ago

I also gave it a quick try. It seems that the new gmusicapi has some new dependencies. I ended up in downloading pycrypto, but as I don't master python (yet), I got stuck. The plugin could not find a module named "number", which resides in Crypto.Util. I tried to import it, but failed.

Greg285 commented 9 years ago

Hi

Followed and used this channel on plex forum since long time...did subscribe for an all access account but looks like the channel is also not working for me - channel not responding

Downloaded the lastest bundle and copy/paste the content in the plex plugins folder, restarted server, channel is there but not responding...

I already had this type of issue and it was due to my gmail account security but not sure it is related

Any helps (as the plex forum is not reachable for now)

Thanks

Some fresh logs

2015-07-05 09:20:35,304 (-4f0074c0) : DEBUG (runtime:106) - Sending packed state data (112 bytes) 2015-07-05 09:20:35,309 (-4f0074c0) : DEBUG (runtime:918) - Response: [500] 1973 bytes 2015-07-05 09:21:08,376 (-4f0074c0) : DEBUG (runtime:717) - Handling request GET /music/googlemusic 2015-07-05 09:21:08,389 (-4f0074c0) : DEBUG (runtime:814) - Found route matching /music/googlemusic 2015-07-05 09:21:09,329 (-4f0074c0) : CRITICAL (runtime:883) - Exception (most recent call last): File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(_d) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 111, in call result = self.func(_args, _kwargs) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Code/init.py", line 47, in MainMenu API.authenticate(Prefs['email'], Prefs['password']) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 66, in authenticate self._set_all_access() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 38, in _set_all_access settings = self._webclient._make_call(webclient.GetSettings, '') File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/clients/shared.py", line 80, in _make_call return protocol.perform(self.session, self.validate, args, _kwargs) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/protocol/shared.py", line 208, in perform response = session.send(req_kwargs, cls.required_auth) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/session.py", line 81, in send raise NotLoggedIn NotLoggedIn

2015-07-05 09:21:09,349 (-4f0074c0) : DEBUG (runtime:106) - Sending packed state data (112 bytes) 2015-07-05 09:21:09,353 (-4f0074c0) : DEBUG (runtime:918) - Response: [500] 1973 bytes

jwdempsey commented 9 years ago

I have not had time to look into this as of yet unfortunately. I do not need any additional logs at this point because I know what the issue is.

Slinkynose commented 9 years ago

Thanks jwdempsey. I appreciate your efforts.

jwdempsey commented 9 years ago

The major issue I have right now is getting Plex to play nice with the gmusicapi library. The requirements changed for gmusicapi and I am unable to satisfy those inside of Plex.

ghost commented 8 years ago

Any updates or is this plugin dead now? :(

reave commented 8 years ago

Any update on this?

dpeukert commented 8 years ago

It's being solved in #13.

malfuncion commented 8 years ago

Did this die again for Windows? I am unable to load the plugin, get a timeout message on either the server or the channel. This is the last bit from the log, verified user/password. Let me know if you'd like more. {reposted in issues}

2015-12-16 18:29:56,993 (3970) :  DEBUG (runtime:717) - Handling request GET /music/googlemusic
2015-12-16 18:29:56,993 (3970) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2015-12-16 18:29:56,994 (3970) :  DEBUG (runtime:814) - Found route matching /music/googlemusic
2015-12-16 18:29:57,737 (3970) :  CRITICAL (core:572) - Exception (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 111, in call
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Code\__init__.py", line 47, in MainMenu
    API.authenticate(Prefs['email'], Prefs['password'])
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 66, in authenticate
    self._set_all_access()
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 38, in _set_all_access
    settings = self._webclient._make_call(webclient.GetSettings, '')
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\clients\shared.py", line 80, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\protocol\shared.py", line 208, in perform
    response = session.send(req_kwargs, cls.required_auth)
  File "F:\Local Data - SH\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\session.py", line 81, in send
    raise NotLoggedIn
NotLoggedIn

2015-12-16 18:29:57,742 (3970) :  DEBUG (runtime:106) - Sending packed state data (112 bytes)
2015-12-16 18:29:57,743 (3970) :  DEBUG (runtime:924) - Response: [500] 1591 bytes
Slinkynose commented 8 years ago

Malfunction, mine is working fine on Windows 7. You may want to look at the thread on Plex forums for details on making the latest version work.

mkanet commented 8 years ago

This fix works perfectly. I think the only problem is people are first trying an older download of this plugin from outdated forum posts. It took me a couple of tries to find tbis download. Now my family can enjoy Google Music Family plan on our Roku Player. Thank you so much for tbis irreplaceable Plex Plugin!!

jruperto commented 8 years ago

I had this plugin working on the raspberry pi2, however I upgraded plex to latest and now I get the channel not responding error. My logs show a 500 error: DEBUG - Request: [192.168.1.64:29558] GET /music/googlemusic (8 live) GZIP Jan 04, 2016 14:36:40 [0x69bff400] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 8 times. Jan 04, 2016 14:36:40 [0x69bff400] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic Jan 04, 2016 14:36:40 [0x69bff400] DEBUG - HTTP requesting GET http://127.0.0.1:43745/music/googlemusic Jan 04, 2016 14:36:41 [0x69bff400] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 500, with 1807 bytes of content. Jan 04, 2016 14:36:41 [0x727ff400] DEBUG - Completed: [192.168.1.64:29558] GET /music/googlemusic (8 live) GZIP 888ms 892 bytes 500 (pipelined: 13)

Anyone else see this one?

lyncos commented 8 years ago

I have that same exact error with the latest Plex version.....

On Debian Jessie

Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - Request: [192.168.80.170:40122] GET /music/googlemusic (3 live) TLS GZIP Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication. Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - Auth: Came in with a super-token, authorization succeeded. Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 42 times. Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - HTTP requesting GET http://127.0.0.1:41859/music/googlemusic Feb 19, 2016 20:03:12 [0x7f1a10fff700] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 500, with 1917 bytes of content. Feb 19, 2016 20:03:12 [0x7f1a12fff700] DEBUG - Completed: [192.168.80.170:40122] GET /music/googlemusic (3 live) TLS GZIP 382ms 1112 bytes 500 (pipelined: 2)

scummboy commented 8 years ago

I am getting a 500 error too.

Mar 10, 2016 07:42:59 [0xeb047b70] DEBUG - Plug-in com.plexapp.plugins.googlemusic has been used 24 times. Mar 10, 2016 07:42:59 [0xeb047b70] DEBUG - [com.plexapp.plugins.googlemusic] Sending command over HTTP (GET): /music/googlemusic Mar 10, 2016 07:42:59 [0xeb047b70] DEBUG - HTTP requesting GET http://127.0.0.1:37579/music/googlemusic Mar 10, 2016 07:42:59 [0xeb047b70] DEBUG - [com.plexapp.plugins.googlemusic] HTTP reply status 500, with 1875 bytes of content. Mar 10, 2016 07:42:59 [0xf1bffb70] DEBUG - Completed: [184.68.137.198:56427] GET /music/googlemusic (9 live) TLS GZIP Page 0-49 336ms 1039 bytes 500 (pipelined: 3)

dannosaur commented 8 years ago

I've managed to get this working. The primary issue that people will have with this plugin on Linux based PMS's is the fact that the bundled pycrypto library doesn't come with any of the *.so files. This is what I did to get it working:

Note: YOU MUST BE USING THE update_gmusicapi_fix_login BRANCH. master DOES NOT WORK.

Go here: https://pypi.python.org/pypi/pycrypto and download pycrypto (latest version at time of writing is 2.6.1). Download the tar.gz file into another directory and extract it (NOT in the plugin's directory, somewhere else will do just fine, we only want to pick specific files out of this). Then do this:

cd pycrypto-2.6.1
python setup.py build
cd build/lib<tab> (the dir name looks like it could change, which is why I'm tab-completing it here.)
cd Crypto
find . -type f -name "*.so"

From the find command, you'll get a list of 17 .so files that you'll need to copy in 3 directories. For each directory (Hash, Util, Cipher), do this;

cd Hash
cp *.so /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/Crypto/Hash/

(repeat for Util and Cipher dirs)

Now, in theory, it should be able to satisfy a whole bunch of import errors.

This method alone worked for me (granted it took some digging) and I'm currently sat listening to Google Play Music via Plex on my Amazon Fire TV.

Watch the log file (/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.plugins.googlemusic.log) for any further hints as to what the problem might be if this doesn't work.

sisfs commented 8 years ago

@dannosaur thank you so very much for blazing the path for the rest of us! I can confirm that your workaround is still working as of today on FreeBSD 10.2 (NAS4Free) plexpass port version 1.0.0.2261.

Thank you so much!!!

Greg285 commented 8 years ago

Hi,

Followed all those usefull advises and now I see the channel and can enter my credentials but no library content is showned Looks like something is wrong ..here is the googlemusic log

2016-07-09 16:53:01,936 (7fdb82ffd700) :  DEBUG (runtime:88) - Sending packed state data (112 bytes)
2016-07-09 16:53:01,937 (7fdb82ffd700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 751 bytes
2016-07-09 16:53:01,972 (7fdb82ffd700) :  DEBUG (runtime:717) - Handling request GET /music/googlemusic/refreshmenu
2016-07-09 16:53:01,975 (7fdb82ffd700) :  DEBUG (runtime:814) - Found route matching /music/googlemusic/refreshmenu
2016-07-09 16:53:01,979 (7fdb82ffd700) :  DEBUG (runtime:1117) - Created a thread named 'LoadAsync'
2016-07-09 16:53:01,983 (7fdb82ffd700) :  DEBUG (runtime:88) - Sending packed state data (112 bytes)
2016-07-09 16:53:01,984 (7fdb82ffd700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 429 bytes
2016-07-09 16:53:02,002 (7fdb823db700) :  CRITICAL (runtime:1128) - Exception in thread named 'LoadAsync' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a17e99e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1126, in _start_thread
    f(*args, **kwargs)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Code/__init__.py", line 19, in LoadAsync
    API.load_data()
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 71, in load_data
    self._set_all_songs()
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 46, in _set_all_songs
    if self.authenticate():
TypeError: authenticate() takes exactly 3 arguments (1 given)

2016-07-09 16:53:06,980 (7fdb837fe700) :  INFO (datakit:131) - Saved the dictionary file
doomchild commented 7 years ago

I've followed everything in this thread, and I'm still getting this error. My log shows this:

2016-07-20 23:27:26,862 (7f0e5affd700) :  CRITICAL (runtime:889) - Exception (most recent call last):
  File "bundles-release/Framework.bundle-dist-ninja/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
  File "bundles-release/Framework.bundle-dist-ninja/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 111, in call
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Code/__init__.py", line 47, in MainMenu
    API.authenticate(Prefs['email'], Prefs['password'])
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 66, in authenticate
    self._set_all_access()
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusic.py", line 38, in _set_all_access
    settings = self._webclient._make_call(webclient.GetSettings, '')
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/clients/shared.py", line 80, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/protocol/shared.py", line 208, in perform
    response = session.send(req_kwargs, cls.required_auth)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Libraries/Shared/gmusicapi/session.py", line 81, in send
    raise NotLoggedIn
NotLoggedIn

which pretty obviously tells me that it's not getting logged in, but I can't figure out why. I've issued an app password for Plex, but it doesn't seem to want to log in with it. Are app passwords not supported? I'd rather not turn off 2-step verification on my account...

RevillWeb commented 7 years ago

App password support would be amazing, I'm having the same problem as @doomchild

shoguevara commented 7 years ago

App password works just fine for me, but I switched to Pablo's repo https://github.com/pablorusso/GoogleMusic.bundle

RevillWeb commented 7 years ago

Thank you for the reply, I will try this later. :)

shoguevara commented 7 years ago

@RevillWeb Any luck?

RevillWeb commented 7 years ago

Can't get that fork to even show in the channel list :( I've given the plug-in the correct permissions etc.

eklein commented 7 years ago

@shoguevara I realize this is completely off-topic, as it's related to a different fork, but I have the same problem as @RevillWeb...

I'm getting this stacktrace:


  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 608, in start
    self.sandbox.execute(self.init_code)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 256, in execute
    exec(code) in self.environment
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/GoogleMusic.bundle/Contents/Code/__init__.py", line 4, in <module>
    from gmusic import GMusic, CallFailure, API
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 345, in __import__
    raise e
OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'```

** I installed pycryptodome, and the plugin isn't even loading now.
shoguevara commented 7 years ago

@RevillWeb Try using WebTools - https://github.com/ukdtom/WTInstaller What OS are you on?

shoguevara commented 7 years ago

@eklein Never had that kind of problem. What distro are you using?

eklein commented 7 years ago

@shoguevara Ubuntu 16.04. Still getting the stack trace after installing the module

RevillWeb commented 7 years ago

I'm on Ubuntu 15.04, installed GoogleMusic.bundle via WebTools but still nothing. There doesn't appear to be any errors in the logs via WebTools. Where do Plex logs live? Thank you all for your help.

shoguevara commented 7 years ago

That's pretty odd for Ubuntu.. Unfortunately I don't have any Linux distro's installed even inside Vm at the moment, so I can't test it =(