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

Show_Media_Library timeout on ncmpcpp #156

Closed
khlj opened this issue Aug 9, 2017 · 9 comments
Closed

Show_Media_Library timeout on ncmpcpp #156

khlj opened this issue Aug 9, 2017 · 9 comments
Assignees
Milestone

Comments

@khlj
Copy link

khlj commented Aug 9, 2017

ERROR    SpotifyBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mopidy/core/library.py", line 19, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/site-packages/mopidy/core/library.py", line 142, in get_distinct
    values = future.get()
  File "/usr/lib/python2.7/site-packages/pykka/future.py", line 299, in get
    exec('raise exc_info[0], exc_info[1], exc_info[2]')
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 200, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/site-packages/pykka/actor.py", line 294, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/site-packages/mopidy_spotify/library.py", line 26, in get_distinct
    field, query)
  File "/usr/lib/python2.7/site-packages/mopidy_spotify/distinct.py", line 20, in get_distinct
    config, session, web_client, query)
  File "/usr/lib/python2.7/site-packages/mopidy_spotify/distinct.py", line 45, in _get_distinct_artists
    for track in _get_playlist_tracks(config, session)
  File "/usr/lib/python2.7/site-packages/mopidy_spotify/distinct.py", line 44, in <setcomp>
    artist.name
  File "/usr/lib/python2.7/site-packages/mopidy_spotify/distinct.py", line 119, in _get_playlist_tracks
    playlist.load(config['timeout'])
  File "/usr/lib/python2.7/site-packages/spotify/playlist.py", line 118, in load
    return utils.load(self._session, self, timeout=timeout)
  File "/usr/lib/python2.7/site-packages/spotify/utils.py", line 246, in load
    raise spotify.Timeout(timeout)
Timeout: Operation did not complete in 10.000s
$ mopidy deps
Executable: /usr/bin/mopidy
Platform: Linux-4.12.4-1-ARCH-x86_64-with-glibc2.2.5
Python: CPython 2.7.13 from /usr/lib/python2.7
Mopidy: 2.1.0 from /usr/lib/python2.7/site-packages
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/site-packages
  requests>=2.0: 2.18.3 from /usr/lib/python2.7/site-packages
    chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/lib/python2.7/site-packages
    idna<2.6,>=2.5: 2.5 from /usr/lib/python2.7/site-packages
    urllib3<1.23,>=1.21.1: 1.22 from /usr/lib/python2.7/site-packages
  setuptools: 36.2.7 from /usr/lib/python2.7/site-packages
  tornado>=3.2: 4.5.1 from /usr/lib/python2.7/site-packages
    singledispatch: 3.4.0.3 from /usr/lib/python2.7/site-packages
      six: 1.10.0 from /usr/lib/python2.7/site-packages
    backports_abc>=0.4: 0.5 from /usr/lib/python2.7/site-packages
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/site-packages
  Mopidy>=2.0: 2.1.0 from /usr/lib/python2.7/site-packages
    Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/site-packages
    requests>=2.0: 2.18.3 from /usr/lib/python2.7/site-packages
      chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/lib/python2.7/site-packages
      idna<2.6,>=2.5: 2.5 from /usr/lib/python2.7/site-packages
      urllib3<1.23,>=1.21.1: 1.22 from /usr/lib/python2.7/site-packages
    setuptools: 36.2.7 from /usr/lib/python2.7/site-packages
    tornado>=3.2: 4.5.1 from /usr/lib/python2.7/site-packages
      singledispatch: 3.4.0.3 from /usr/lib/python2.7/site-packages
        six: 1.10.0 from /usr/lib/python2.7/site-packages
      backports_abc>=0.4: 0.5 from /usr/lib/python2.7/site-packages
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/site-packages
  pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/site-packages
    cffi>=1.0.0: 1.10.0 from /usr/lib/python2.7/site-packages
      pycparser: 2.18 from /usr/lib/python2.7/site-packages
  requests>=2.0: 2.18.3 from /usr/lib/python2.7/site-packages
    chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/lib/python2.7/site-packages
    idna<2.6,>=2.5: 2.5 from /usr/lib/python2.7/site-packages
    urllib3<1.23,>=1.21.1: 1.22 from /usr/lib/python2.7/site-packages
  setuptools: 36.2.7 from /usr/lib/python2.7/site-packages
GStreamer: 1.12.2.0 from /usr/lib/python2.7/site-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.24.1
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

I'm currently running 4.12.4-1-ARCH

@ecly
Copy link

ecly commented Aug 13, 2017

I get this as well - seems like it can't load the 'general library'.
It does however work fine when you want to locate a song in the media library eg. using '~' bind in ncmpcpp. It will then locate the artist and song in the media library.

My temporary fix to deal with this is just to reduce the timeout to something bearable, and only use media library through eg. '~' and instead rely on searches.

In .config/mopidy/mopidy.conf

[spotify]
timeout = 2

@khlj
Copy link
Author

khlj commented Aug 13, 2017

@ecly
I just unbound the keymap to show_music_library to whatever the default keymap set to '1' is.

@ecly
Copy link

ecly commented Aug 13, 2017

@hshin23 yeah, that's another workaround if you don't want to use the library altogether. I find it quite nice for browing songs by an artist of a song using '~'. I guess you can still use that feature without the musc library bind though, you'll just have to query the song every time. Either way, would be cool if the media library as a whole could be implemented in a way that doesn't cause hang when you visit it the first time without any context.

@colonelk1
Copy link

Same issue. Does anyone have suggestions how to get the local library up and running then?

@ecly
Copy link

ecly commented Aug 25, 2017

@colonelk1 I think it's a matter of implementing it in mopidy-spotify, unless you use it indirectly, by eg. going to a specific artist using '~' in ncmpcpp

@valerius21
Copy link

same error still exists for me too. It makes the general library useless.

@matrss
Copy link

matrss commented Jan 23, 2018

same here. the mentioned '~' workaround doesn't even work for me.

@marcosmoura
Copy link

Same here. ncmpcpp freezes.

@kingosticks kingosticks self-assigned this Dec 18, 2019
@kingosticks
Copy link
Member

This looks like it failed to load a playlist and will have been fixed by f52babd

@jodal jodal added this to the v4.0 milestone Dec 20, 2019
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

8 participants