mopidy / mopidy-gmusic

DEPRECATED (Mopidy extension for playing music from Google Play Music)
https://mopidy.com
Apache License 2.0
214 stars 60 forks source link

Gmusic won't play, error in log #100

Closed wazzubrad closed 8 years ago

wazzubrad commented 9 years ago

Here is the error;

2015-10-29 07:49:40,210 INFO [719:GMusicBackend-9] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): android.clients.google.com
2015-10-29 07:49:41,026 ERROR [719:GMusicBackend-9] mopidy_gmusic.session: Call to Google Music failed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/session.py", line 31, in inner_wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/session.py", line 78, in get_stream_url
    return self.api.get_stream_url(song_id, quality=quality)
  File "<decorator-gen-78>", line 2, in get_stream_url
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi/utils/utils.py", line 288, in wrapper
    return function(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi/clients/mobileclient.py", line 272, in get_stream_url
    return self._make_call(mobileclient.GetStreamUrl, song_id, device_id, quality)
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi/clients/shared.py", line 80, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi/protocol/shared.py", line 225, in perform
    raise CallFailure(err_msg, call_name)
CallFailure: GetStreamUrl: 403 Client Error: Forbidden for url: https://android.clients.google.com/music/mplay?opt=med&songid=7e3b7885-582e-3538-965c-077a30335894&pt=e&slt=1446126580209&sig=ZF91flpI01khGI5Op0lZ1qaE0pc&net=mob
(requests kwargs: {'url': 'https://android.clients.google.com/music/mplay', 'headers': {'X-Device-ID': u'D803791653264f9c', 'Authorization': '<omitted>'}, 'allow_redirects': False, 'params': {'opt': u'med', 'songid': u'7e3b7885-582e-3538-965c-077a30335894', 'pt': 'e', 'slt': '1446126580209', 'sig': 'ZF91flpI01khGI5Op0lZ1qaE0pc', 'net': 'mob'}, 'method': 'GET'})
(response was: '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n')
2015-10-29 07:49:41,026 WARNING [719:Core-14] mopidy.core.tracklist: Track is not playable: gmusic:track:7e3b7885-582e-3538-965c-077a30335894

Updated: Added formatting. -jodal

jodal commented 9 years ago

What version of Mopidy-GMusic and gmusicapi are you running? Check mopidy deps.

wazzubrad commented 9 years ago
$ sudo mopidyctl deps
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps" as user mopidy
Executable: /usr/bin/mopidy
Platform: Linux-4.2.0-16-generic-x86_64-with-Ubuntu-15.10-wily
Python: CPython 2.7.10 from /usr/lib/python2.7
Mopidy: 1.1.0 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
  tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-ALSAMixer: 1.0.3 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  pyalsaaudio: 0.8.2 from /usr/local/lib/python2.7/dist-packages
Mopidy-Mobile: 1.4.0 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-GMusic: 1.0.0 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  gmusicapi>=6.0: 7.0.0 from /usr/local/lib/python2.7/dist-packages
    validictory!=0.9.2,>=0.8.0: 1.0.1 from /usr/local/lib/python2.7/dist-packages
    decorator>=3.3.1: 4.0.4 from /usr/local/lib/python2.7/dist-packages
    mutagen>=1.18: 1.31 from /usr/local/lib/python2.7/dist-packages
    protobuf>=2.4.1: 2.6.1 from /usr/local/lib/python2.7/dist-packages
      setuptools: 18.4 from /usr/lib/python2.7/dist-packages
    requests!=1.2.0,!=2.2.1,>=1.1.0: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    python-dateutil!=2.0,>=1.3: 2.2 from /usr/lib/python2.7/dist-packages
      six: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages
    oauth2client>=1.1: 1.5.1 from /usr/local/lib/python2.7/dist-packages
      httplib2>=0.9.1: 0.9.2 from /usr/local/lib/python2.7/dist-packages
      pyasn1>=0.1.7: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      pyasn1-modules>=0.0.5: 0.0.8 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      rsa>=3.1.4: 3.2 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.3: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      six>=1.6.1: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    mock>=0.7.0: 1.3.0 from /usr/lib/python2.7/dist-packages
      funcsigs: 0.4 from /usr/lib/python2.7/dist-packages
      pbr>=0.11: 1.8.0 from /usr/lib/python2.7/dist-packages
      six>=1.7: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    appdirs>=1.1.0: 1.4.0 from /usr/local/lib/python2.7/dist-packages
    gpsoauth==0.0.4: 0.0.4 from /usr/local/lib/python2.7/dist-packages
      pycrypto: 2.6.1 from /usr/lib/python2.7/dist-packages
      requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
      pyopenssl: 0.15.1 from /usr/lib/python2.7/dist-packages
        cryptography>=0.7: 1.0.1 from /usr/lib/python2.7/dist-packages
          idna>=2.0: 2.0 from /usr/lib/python2.7/dist-packages
          pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
          six>=1.4.1: 1.10.0 from /usr/local/lib/python2.7/dist-packages
          cffi>=1.1.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
            pycparser: 2.14 from /usr/lib/python2.7/dist-packages
        six>=1.5.2: 1.10.0 from /usr/local/lib/python2.7/dist-packages
      ndg-httpsclient: 0.4.0 from /usr/lib/python2.7/dist-packages
        PyOpenSSL: 0.15.1 from /usr/lib/python2.7/dist-packages
          cryptography>=0.7: 1.0.1 from /usr/lib/python2.7/dist-packages
            idna>=2.0: 2.0 from /usr/lib/python2.7/dist-packages
            pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
            six>=1.4.1: 1.10.0 from /usr/local/lib/python2.7/dist-packages
            cffi>=1.1.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
              pycparser: 2.14 from /usr/lib/python2.7/dist-packages
          six>=1.5.2: 1.10.0 from /usr/local/lib/python2.7/dist-packages
      pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages
    MechanicalSoup: 0.3.1 from /usr/local/lib/python2.7/dist-packages
      requests>=2.0: 2.8.1 from /usr/local/lib/python2.7/dist-packages
      beautifulsoup4: 4.4.1 from /usr/local/lib/python2.7/dist-packages
      six>=1.4: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    pyopenssl: 0.15.1 from /usr/lib/python2.7/dist-packages
      cryptography>=0.7: 1.0.1 from /usr/lib/python2.7/dist-packages
        idna>=2.0: 2.0 from /usr/lib/python2.7/dist-packages
        pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
        six>=1.4.1: 1.10.0 from /usr/local/lib/python2.7/dist-packages
        cffi>=1.1.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
          pycparser: 2.14 from /usr/lib/python2.7/dist-packages
      six>=1.5.2: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    ndg-httpsclient: 0.4.0 from /usr/lib/python2.7/dist-packages
      PyOpenSSL: 0.15.1 from /usr/lib/python2.7/dist-packages
        cryptography>=0.7: 1.0.1 from /usr/lib/python2.7/dist-packages
          idna>=2.0: 2.0 from /usr/lib/python2.7/dist-packages
          pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
          six>=1.4.1: 1.10.0 from /usr/local/lib/python2.7/dist-packages
          cffi>=1.1.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
            pycparser: 2.14 from /usr/lib/python2.7/dist-packages
        six>=1.5.2: 1.10.0 from /usr/local/lib/python2.7/dist-packages
    pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages
  requests>=2.0: 2.8.1 from /usr/local/lib/python2.7/dist-packages
Mopidy-Mopify: 1.5.7 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
  ConfigObj: 5.0.6 from /usr/local/lib/python2.7/dist-packages
    six: 1.10.0 from /usr/local/lib/python2.7/dist-packages
Mopidy-Pandora: 0.1.6 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0.7: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  pydora>=1.4.0: 1.5.1 from /usr/local/lib/python2.7/dist-packages
    pycrypto>=2.6.1: 2.6.1 from /usr/lib/python2.7/dist-packages
    requests>=2: 2.8.1 from /usr/local/lib/python2.7/dist-packages
  requests>=2.5.0: 2.8.1 from /usr/local/lib/python2.7/dist-packages
Mopidy-TuneIn: 0.2.2 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0.0: 2.8.1 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=1.0: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-Moped: 0.6.3 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0.0: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-Grooveshark: 1.0.4 from /usr/local/lib/python2.7/dist-packages
  setuptools: 18.4 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 1.1.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests: 2.8.1 from /usr/local/lib/python2.7/dist-packages
    tornado>=2.3: 4.2.1 from /usr/lib/python2.7/dist-packages
  pygrooveshark>=3.1: 3.2 from /usr/local/lib/python2.7/dist-packages
GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst
  Detailed information:
    Python wrapper: gst-python 0.10.22.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        flump3dec
        id3demux
        id3v2mux
        lame
        mad
        mp3parse
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        none

Updated: Added formatting. -jodal

jodal commented 9 years ago

Is this a problem with that single track, or all tracks?

Did it use to work, or have it never worked for you?

wazzubrad commented 9 years ago

It is the same error for all tracks (have tried roughly 3).

I am a new user to mopidy so this is my first run trying mopidy-gmusic.

wazzubrad commented 9 years ago

Hi Jodal, any ideas on the error I am getting?

Hpizzle commented 8 years ago

Having the same issue after I reinstalled mopidy and updated everything. Worked fine before

liamhendricks commented 8 years ago

Also having issues. Maybe it's the gmusic api version? Can we try rolling back to 5.x?

neuronull commented 8 years ago

Same issue. New to mopidy and mopidy-gmusic, but not new to mpd.

$ mopidy deps

Executable: /usr/bin/mopidy Platform: Linux-3.16.0-4-amd64-x86_64-with-debian-8.2 Python: CPython 2.7.9 from /usr/lib/python2.7 Mopidy: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages Mopidy-GMusic: 1.0.0 from /usr/local/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages gmusicapi>=6.0: 7.0.0 from /usr/local/lib/python2.7/dist-packages validictory>=0.8.0,!=0.9.2: 1.0.1 from /usr/local/lib/python2.7/dist-packages decorator>=3.3.1: 4.0.6 from /usr/local/lib/python2.7/dist-packages mutagen>=1.18: 1.31 from /usr/local/lib/python2.7/dist-packages protobuf>=2.4.1: 2.6.1 from /usr/local/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages requests>=1.1.0,!=1.2.0,!=2.2.1: 2.4.3 from /usr/lib/python2.7/dist-packages python-dateutil>=1.3,!=2.0: 1.5 from /usr/local/lib/python2.7/dist-packages proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages oauth2client>=1.1: 1.5.2 from /usr/local/lib/python2.7/dist-packages httplib2>=0.9.1: 0.9.2 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.7: 0.1.9 from /usr/local/lib/python2.7/dist-packages pyasn1-modules>=0.0.5: 0.0.8 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages rsa>=3.1.4: 3.2.3 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.3: 0.1.9 from /usr/local/lib/python2.7/dist-packages six>=1.6.1: 1.8.0 from /usr/lib/python2.7/dist-packages mock>=0.7.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages funcsigs: 0.4 from /usr/local/lib/python2.7/dist-packages six>=1.7: 1.8.0 from /usr/lib/python2.7/dist-packages pbr>=0.11: 1.8.1 from /usr/local/lib/python2.7/dist-packages appdirs>=1.1.0: 1.4.0 from /usr/local/lib/python2.7/dist-packages gpsoauth==0.0.4: 0.0.4 from /usr/local/lib/python2.7/dist-packages pycrypto: 2.6.1 from /usr/local/lib/python2.7/dist-packages requests: 2.4.3 from /usr/lib/python2.7/dist-packages pyopenssl: 0.14 from /usr/lib/python2.7/dist-packages cryptography>=0.2.1: 0.6.1 from /usr/lib/python2.7/dist-packages cffi>=0.8: 0.8.6 from /usr/lib/python2.7/dist-packages pycparser: 2.10 from /usr/lib/python2.7/dist-packages six>=1.4.1: 1.8.0 from /usr/lib/python2.7/dist-packages six>=1.5.2: 1.8.0 from /usr/lib/python2.7/dist-packages ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7 PyOpenSSL: 0.14 from /usr/lib/python2.7/dist-packages cryptography>=0.2.1: 0.6.1 from /usr/lib/python2.7/dist-packages cffi>=0.8: 0.8.6 from /usr/lib/python2.7/dist-packages pycparser: 2.10 from /usr/lib/python2.7/dist-packages six>=1.4.1: 1.8.0 from /usr/lib/python2.7/dist-packages six>=1.5.2: 1.8.0 from /usr/lib/python2.7/dist-packages pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages MechanicalSoup: 0.4.0 from /usr/local/lib/python2.7/dist-packages beautifulsoup4: 4.4.1 from /usr/local/lib/python2.7/dist-packages six>=1.4: 1.8.0 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages pyopenssl: 0.14 from /usr/lib/python2.7/dist-packages cryptography>=0.2.1: 0.6.1 from /usr/lib/python2.7/dist-packages cffi>=0.8: 0.8.6 from /usr/lib/python2.7/dist-packages pycparser: 2.10 from /usr/lib/python2.7/dist-packages six>=1.4.1: 1.8.0 from /usr/lib/python2.7/dist-packages six>=1.5.2: 1.8.0 from /usr/lib/python2.7/dist-packages ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7 PyOpenSSL: 0.14 from /usr/lib/python2.7/dist-packages cryptography>=0.2.1: 0.6.1 from /usr/lib/python2.7/dist-packages cffi>=0.8: 0.8.6 from /usr/lib/python2.7/dist-packages pycparser: 2.10 from /usr/lib/python2.7/dist-packages six>=1.4.1: 1.8.0 from /usr/lib/python2.7/dist-packages six>=1.5.2: 1.8.0 from /usr/lib/python2.7/dist-packages pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages Mopidy>=1.0: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst Detailed information: Python wrapper: gst-python 0.10.22.0 Relevant elements: Found: uridecodebin souphttpsrc appsrc alsasink osssink oss4sink pulsesink id3demux id3v2mux lame mad mp3parse vorbisdec vorbisenc vorbisparse oggdemux oggmux oggparse flacdec flacparse shout2send Not found: flump3dec

Fubarjie commented 8 years ago

Hey, same Problems. Im also new to Mopidy And Mopidy-GMusic. Google Login works fine and i can browse all folders. Only Playback doesnt work :(

Start..

INFO Starting Mopidy 1.1.1 INFO Loading config from builtin defaults INFO Loading config from /home/pi/.config/mopidy/mopidy.conf INFO Loading config from command line options INFO Enabled extensions: mpd, http, file, stream, gmusic, softwaremixer, moped, websettings, m3u INFO Disabled extensions: local INFO Starting Mopidy mixer: SoftwareMixer INFO Starting Mopidy audio INFO Starting Mopidy backends: GMusicBackend, StreamBackend, M3UBackend, FileBackend INFO Audio output set to "autoaudiosink" INFO Loaded 0 M3U playlists from /home/pi/.local/share/mopidy/m3u INFO Logged in to Google Music INFO Start refreshing Google Music library INFO Starting Mopidy core INFO Starting Mopidy frontends: GMusicScrobblerFrontend, MpdFrontend, HttpFrontend INFO MPD server running at [::ffff:127.0.0.1]:6600 INFO HTTP server running at [::]:6680 INFO Loaded 4 playlists from Google Music INFO Finished refreshing Google Music content in 39s

console output

ERROR Call to Google Music failed Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/session.py", line 31, in inner_wrapper return func(self, _args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/session.py", line 78, in get_stream_url return self.api.get_stream_url(song_id, quality=quality) File "", line 2, in get_stream_url File "/usr/local/lib/python2.7/dist-packages/gmusicapi/utils/utils.py", line 290, in wrapper return function(_args, _kw) File "/usr/local/lib/python2.7/dist-packages/gmusicapi/clients/mobileclient.py", line 272, in get_stream_url return self._make_call(mobileclient.GetStreamUrl, song_id, device_id, quality) File "/usr/local/lib/python2.7/dist-packages/gmusicapi/clients/shared.py", line 81, in _make_call return protocol.perform(self.session, self.validate, _args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/gmusicapi/protocol/shared.py", line 225, in perform raise CallFailure(err_msg, call_name) CallFailure: GetStreamUrl: 403 Client Error: Forbidden (requests kwargs: {'url': 'https://android.clients.google.com/music/mplay', 'headers': {'X-Device-ID': u'C2000F7B706ABDB3', u'Authorization': ''}, 'allow_redirects': False, 'params': {'opt': u'med', 'songid': u'b7eb04fc-43f1-35eb-a271-f5d456c593dc', 'pt': 'e', 'slt': '1449934100680', 'sig': 'b7ddaoHhG2xWvYsH-RBEDCkJoMg', 'net': 'mob'}, 'method': 'GET'}) (response was: '\n\nForbidden\n\n\n

Forbidden

\n

Error 403

\n\n\n') WARNING Track is not playable: gmusic:track:b7eb04fc-43f1-35eb-a271-f5d456c593dc

mopidy debs

Executable: /usr/bin/mopidy Platform: Linux-4.1.13-v7+-armv7l-with-debian-8.0 Python: CPython 2.7.9 from /usr/lib/python2.7 Mopidy: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages Mopidy-GMusic: 1.0.0 from /usr/local/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages gmusicapi>=6.0: 7.0.1-dev from /usr/local/lib/python2.7/dist-packages validictory>=0.8.0,!=0.9.2: 1.0.1 from /usr/local/lib/python2.7/dist-packages decorator>=3.3.1: 4.0.6 from /usr/local/lib/python2.7/dist-packages mutagen>=1.18: 1.31 from /usr/local/lib/python2.7/dist-packages protobuf>=2.4.1: 2.6.1 from /usr/local/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages requests>=1.1.0,!=1.2.0,!=2.2.1,<2.8.0: 2.4.3 from /usr/lib/python2.7/dist-packages python-dateutil>=1.3,!=2.0: 2.4.2 from /usr/local/lib/python2.7/dist-packages six>=1.5: 1.8.0 from /usr/lib/python2.7/dist-packages proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages oauth2client>=1.1: 1.5.2 from /usr/local/lib/python2.7/dist-packages httplib2>=0.9.1: 0.9.2 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.7: 0.1.9 from /usr/local/lib/python2.7/dist-packages pyasn1-modules>=0.0.5: 0.0.8 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages rsa>=3.1.4: 3.2.3 from /usr/local/lib/python2.7/dist-packages pyasn1>=0.1.3: 0.1.9 from /usr/local/lib/python2.7/dist-packages six>=1.6.1: 1.8.0 from /usr/lib/python2.7/dist-packages mock>=0.7.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages funcsigs: 0.4 from /usr/local/lib/python2.7/dist-packages six>=1.7: 1.8.0 from /usr/lib/python2.7/dist-packages pbr>=0.11: 1.8.1 from /usr/local/lib/python2.7/dist-packages appdirs>=1.1.0: 1.4.0 from /usr/local/lib/python2.7/dist-packages gpsoauth==0.0.5: 0.0.5 from /usr/local/lib/python2.7/dist-packages pycrypto>=2.5: 2.6.1 from /usr/local/lib/python2.7/dist-packages requests: 2.4.3 from /usr/lib/python2.7/dist-packages pyopenssl: 0.13.1 from /usr/lib/python2.7/dist-packages ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7 PyOpenSSL: 0.13.1 from /usr/lib/python2.7/dist-packages pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages MechanicalSoup: 0.4.0 from /usr/local/lib/python2.7/dist-packages beautifulsoup4: 4.4.1 from /usr/local/lib/python2.7/dist-packages six>=1.4: 1.8.0 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages pyopenssl: 0.13.1 from /usr/lib/python2.7/dist-packages ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7 PyOpenSSL: 0.13.1 from /usr/lib/python2.7/dist-packages pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages Mopidy>=1.0: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages Mopidy-WebSettings: 0.1.4.2 from /usr/local/lib/python2.7/dist-packages ConfigObj>=4.0.0: 5.0.6 from /usr/local/lib/python2.7/dist-packages six: 1.8.0 from /usr/lib/python2.7/dist-packages Jinja2>=2.7: 2.8 from /usr/local/lib/python2.7/dist-packages MarkupSafe: 0.23 from /usr/local/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages Mopidy>=0.19: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages Mopidy-Moped: 0.6.4 from /usr/local/lib/python2.7/dist-packages setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages Mopidy>=1.0.0: 1.1.1 from /usr/lib/python2.7/dist-packages Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst Detailed information: Python wrapper: gst-python 0.10.22.0 Relevant elements: Found: uridecodebin souphttpsrc appsrc alsasink osssink oss4sink pulsesink id3demux id3v2mux lame mad mp3parse vorbisdec vorbisenc vorbisparse oggdemux oggmux oggparse flacdec flacparse shout2send Not found: flump3dec

ttweb commented 8 years ago

Same error here: Found out that whenever I enter a device id in mopidy.conf I can browse, but never play music. Without the device ID it works, but not very good (lot's of music I actually have in my gmusic account doesn't even show up).

retraut commented 8 years ago

@ttweb have a same issue here.

fredludlow commented 8 years ago

Currently works for me, but I can reproduce it if I have my deviceid set to "test". That is, I get a successful "refreshed google music content in xxseconds", can search as expected but get a 403 response when I try to play anything.

conf looks like this:

[gmusic]
enabled = true
username = ####
password = #### 1-off password (2-factor auth)
bitrate = 320
deviceid = #### 16-digit hex (phone's device ID)  - this works perfectly
#deviceid = test ## <- This allows everything except actual playback
all_access = true

mopidy 1.1.2, mopidy-gmusic 1.0.0 gmusicapi 7.0.0

mopidy deps produces this:

Executable: /usr/local/bin/mopidy
Platform: Linux-4.1.13-v7+-armv7l-with-debian-8.0
Python: CPython 2.7.9 from /usr/lib/python2.7
Mopidy: 1.1.2 from /usr/local/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
  tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-MusicBox-Webclient: 2.1.1 from /usr/local/lib/python2.7/dist-packages
  setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=1.1.0: 1.1.2 from /usr/local/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-Moped: 0.6.4 from /usr/local/lib/python2.7/dist-packages
  setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=1.0.0: 1.1.2 from /usr/local/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-API-Explorer: 1.0.1 from /usr/local/lib/python2.7/dist-packages
  setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=0.19: 1.1.2 from /usr/local/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-GMusic: 1.0.0 from /usr/local/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 1.1.2 from /usr/local/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  gmusicapi>=6.0: 7.0.0 from /usr/local/lib/python2.7/dist-packages
    validictory!=0.9.2,>=0.8.0: 1.0.1 from /usr/local/lib/python2.7/dist-packages
    decorator>=3.3.1: 4.0.6 from /usr/local/lib/python2.7/dist-packages
    mutagen>=1.18: 1.31 from /usr/local/lib/python2.7/dist-packages
    protobuf>=2.4.1: 2.6.1 from /usr/local/lib/python2.7/dist-packages
      setuptools: 20.0 from /usr/local/lib/python2.7/dist-packages
    requests!=1.2.0,!=2.2.1,>=1.1.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    python-dateutil!=2.0,>=1.3: 2.4.2 from /usr/local/lib/python2.7/dist-packages
      six>=1.5: 1.8.0 from /usr/lib/python2.7/dist-packages
    proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages
    oauth2client>=1.1: 1.5.2 from /usr/local/lib/python2.7/dist-packages
      httplib2>=0.9.1: 0.9.2 from /usr/local/lib/python2.7/dist-packages
      pyasn1>=0.1.7: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      pyasn1-modules>=0.0.5: 0.0.8 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      rsa>=3.1.4: 3.3 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.3: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      six>=1.6.1: 1.8.0 from /usr/lib/python2.7/dist-packages
    mock>=0.7.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
      funcsigs: 0.4 from /usr/local/lib/python2.7/dist-packages
      pbr>=0.11: 1.8.1 from /usr/local/lib/python2.7/dist-packages
      six>=1.7: 1.8.0 from /usr/lib/python2.7/dist-packages
    appdirs>=1.1.0: 1.4.0 from /usr/local/lib/python2.7/dist-packages
    gpsoauth==0.0.4: 0.0.4 from /usr/local/lib/python2.7/dist-packages
      pycrypto: 2.6.1 from /usr/local/lib/python2.7/dist-packages
      requests: 2.4.3 from /usr/lib/python2.7/dist-packages
      pyopenssl: 0.13.1 from /usr/lib/python2.7/dist-packages
      ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7
        PyOpenSSL: 0.13.1 from /usr/lib/python2.7/dist-packages
      pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages
    MechanicalSoup: 0.4.0 from /usr/local/lib/python2.7/dist-packages
      requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
      beautifulsoup4: 4.4.1 from /usr/local/lib/python2.7/dist-packages
      six>=1.4: 1.8.0 from /usr/lib/python2.7/dist-packages
    pyopenssl: 0.13.1 from /usr/lib/python2.7/dist-packages
    ndg-httpsclient: 0.3.2 from /usr/lib/pymodules/python2.7
      PyOpenSSL: 0.13.1 from /usr/lib/python2.7/dist-packages
    pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages
GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst
  Detailed information:
    Python wrapper: gst-python 0.10.22.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        id3demux
        id3v2mux
        lame
        mad
        mp3parse
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        pulsesink
        flump3dec
belak commented 8 years ago

This is somewhat expected behavior. If the deviceid is not set properly, many operations will work, but grabbing song URLs will not.

I've opened PR #133 about adding an explicit warning when this happens so it will hopefully be a little clearer what the proper resolution for this is, but I'm going to close this because it's more of a question than a bug.

AskMP commented 8 years ago

Has anybody made any progress on this? I literally wiped my Mopidy pi to re-install everything from the ground up and now that I’m running the current of everything, I have the same issue as above. I’ve double confirmed the password and the device ID, I have all access account, I can see my standard playlists but playing a song (I’ve tried >20) results in a scrolling list of attempted song IDs. The first quite a few with a 403 (Forbidden) error and then beginning with 400 (Bad Request) errors.

Tracebacks are the same as the first post and I’ve also tried gmusicapi-10.0.2rc1

belak commented 8 years ago

Can you give any example album IDs? I've had issues with a few albums that turned out to be issues on Google's side.

AskMP commented 8 years ago

I’m using the radios… so literally, every radio link that I dive into, I randomly choose a song. For instance, any of the “blogged 200” songs, or similar radios.