Scrobbler, failing to start

This is the dep list:

root@MusicBox:/var# pip install mopidy-scrobbler
Requirement already satisfied: mopidy-scrobbler in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from mopidy-scrobbler)
Requirement already satisfied: Mopidy>=0.18 in /usr/local/lib/python2.7/dist-packages (from mopidy-scrobbler)
Requirement already satisfied: Pykka>=1.1 in /usr/local/lib/python2.7/dist-packages (from mopidy-scrobbler)
Requirement already satisfied: pylast>=0.5.7 in /usr/local/lib/python2.7/dist-packages (from mopidy-scrobbler)
Requirement already satisfied: tornado>=2.3 in /usr/local/lib/python2.7/dist-packages (from Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: requests>=2.0 in /usr/local/lib/python2.7/dist-packages (from Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from pylast>=0.5.7->mopidy-scrobbler)
Requirement already satisfied: backports.ssl_match_hostname in /usr/local/lib/python2.7/dist-packages (from tornado>=2.3->Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: certifi in /usr/local/lib/python2.7/dist-packages (from tornado>=2.3->Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests>=2.0->Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests>=2.0->Mopidy>=0.18->mopidy-scrobbler)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests>=2.0->Mopidy>=0.18->mopidy-scrobbler)

This is the relevant log bit:

    2018-07-26 11:30:24,644 - ERROR    Extension scrobbler failed during setup, this might have left the registry in a bad state.
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/mopidy/__main__.py", line 145, in main
        extension.setup(registry)
      File "/usr/local/lib/python2.7/dist-packages/mopidy_scrobbler/__init__.py", line 28, in setup
        from .frontend import ScrobblerFrontend
      File "/usr/local/lib/python2.7/dist-packages/mopidy_scrobbler/frontend.py", line 7, in <module>
        import pylast
      File "/usr/local/lib/python2.7/dist-packages/pylast/__init__.py", line 111, in <module>
        SSL_CONTEXT = ssl.create_default_context()
    AttributeError: 'module' object has no attribute 'create_default_context'

this is my mopidy running config:

[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000

[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
debug_file = /var/log/mopidy/mopidy-debug.log
config_file = /etc/mopidy/logging.conf

[audio]
mixer = software
mixer_volume = 85
output = alsasink

[proxy]
scheme =
hostname =
port =
username =
password =

[mpd]
enabled = true
hostname = 0.0.0.0
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf =
command_blacklist =
  listall
  listallinfo

[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir = /opt/musicbox/webclient
zeroconf =

[stream]
enabled = true
protocols =
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist =
timeout = 5000

[m3u]
enabled = true
playlists_dir = /music/playlists

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs =
  /music|Music
show_dotfiles = false
follow_symlinks = true
metadata_timeout = 1000

[local]
enabled = true
library = sqlite
media_dir = /music
data_dir = $XDG_DATA_DIR/mopidy/local
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = true
excluded_file_extensions =
  .directory .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt
  .mkv
  .avi
  .divx
  .qt
  .htm
  .zip
  .rar
  .gz
  .pdf
  .exe
  .ini
  .mid
  .db
  .m3u
  .sfv
  .midi

[youtube]
enabled = false  ; Extension disabled by user config.

[websettings]
enabled = true
musicbox = true
config_file = /boot/config/settings.ini

[tunein]
enabled = true
timeout = 5000

[spotify]
enabled = true
username = [the username is here]
password = ********
client_id = [id is here]
client_secret = ********
bitrate = 96
timeout = 10
cache_dir =
settings_dir = $XDG_CONFIG_DIR/mopidy/spotify
toplist_countries =
  AD
  AR
  AU
  AT
  BE
  CO
  CY
  DK
  EE
  FI
  FR
  DE
  GR
  HK
  IS
  IE
  IT
  LV
  LI
  LT
  LU
  MY
  MX
  MC
  NL
  NZ
  NO
  PT
  ES
  SG
  SE
  CH
  TW
  TR
  GB
  US
search_album_count = 20
search_artist_count = 10
search_track_count = 50

[spotify_web]
enabled = true
client_id = [id is here]
client_secret = [secret is here]
mopidy_token_url = https://auth.mopidy.com/spotify/token
spotify_token_url = https://accounts.spotify.com/api/token
use_mopidy_oauth_bridge = true
refresh_token = please configure if you want to use spotify auth instead of mopidy swap service

[spotify_tunigo]
enabled = true
region =
sub_genres = true
cache_time = 3600

[soundcloud]
enabled = false  ; Extension disabled by user config.

[somafm]
enabled = false  ; Extension disabled by user config.

[simple-webclient]
enabled = true

[scrobbler]
enabled = true
username = [valid username is here]
password = ********

[podcast]
enabled = true
browse_root = Podcasts.opml
browse_order = desc
lookup_order = asc
cache_size = 64
cache_ttl = 86400
timeout = 10

[podcast-itunes]
enabled = true
retries = 3
country = US
explicit =
base_url = http://itunes.apple.com/
charts = audioPodcasts
search_limit = 20
timeout = 10
charts_limit = 20

[musicbox_webclient]
enabled = true
musicbox = true
websocket_host =
websocket_port =
on_track_click = PLAY_ALL

[mopify]
enabled = true
debug = false

[moped]
enabled = true

[mobile]
enabled = true
title = Mopidy Mobile on $hostname
ws_url =

[local-sqlite]
enabled = true
directories =
  Albums                  local:directory?type=album
  Artists                 local:directory?type=artist
  Composers               local:directory?type=artist&role=composer
  Genres                  local:directory?type=genre
  Performers              local:directory?type=artist&role=performer
  Release Years           local:directory?type=date&format=%25Y
  Tracks                  local:directory?type=track
  Last Week's Updates     local:directory?max-age=604800
  Last Month's Updates    local:directory?max-age=2592000
timeout = 10
use_album_mbid_uri = true
use_artist_mbid_uri = false
use_artist_sortname = false

[internetarchive]
enabled = false  ; Extension disabled by user config.

[http-kuechenradio]
enabled = true
title = Mopidy Küchenradio
default_locale = en

[gmusic]
enabled = false  ; Extension disabled by user config.

[dirble]
enabled = false  ; Extension disabled by user config.

[audioaddict]
enabled = false  ; Extension disabled by user config.

[alsamixer]
enabled = false  ; Extension disabled by user config.

python version is 2.7.3 This is on Raspberry 3, previously updating python broke musicbox project completely, so I’m vary of attempting that again unless there’s a known compatible version to update to.

Gstreamer versoin output below, in case that’ s involved in all this somehow (gstreamer is what broke last time I tried touching anything around python and pip as provided in the raspberry image)

ii  gstreamer0.10-alsa:armhf              0.10.36-1.1+deb7u2                      armhf        GStreamer plugin for ALSA
ii  gstreamer0.10-ffmpeg:armhf            0.10.13-5                               armhf        FFmpeg plugin for GStreamer
ii  gstreamer0.10-fluendo-mp3             0.10.15.debian-1                        armhf        Fluendo mp3 decoder GStreamer plugin
ii  gstreamer0.10-gconf:armhf             0.10.31-3+nmu1+deb7u2                   armhf        GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-plugins-bad:armhf       0.10.23-7.1+deb7u5                      armhf        GStreamer plugins from the "bad" set
ii  gstreamer0.10-plugins-base:armhf      0.10.36-1.1+deb7u2                      armhf        GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-good:armhf      0.10.31-3+nmu1+deb7u2                   armhf        GStreamer plugins from the "good" set
ii  gstreamer0.10-plugins-ugly:armhf      0.10.19-2+deb7u1                        armhf        GStreamer plugins from the "ugly" set
ii  gstreamer0.10-tools                   0.10.36-1.2                             armhf        Tools for use with GStreamer
ii  libgstreamer-plugins-bad0.10-0:armhf  0.10.23-7.1+deb7u5                      armhf        GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0:armhf 0.10.36-1.1+deb7u2                      armhf        GStreamer libraries from the "base" set
ii  libgstreamer0.10-0:armhf              0.10.36-1.2                             armhf        Core GStreamer libraries and elements

What I’ve done so far:
uninstalled and reinstalled scrobbler. so 1.2.0 instead of 1.1.1 above, it also updated pylast to 1.6.0 (and didn’t break anything else, yay) - didn’t fix the problem.

Installed ntp (what was missing for some reason?), so time is less wonky, but this still does not fix the problem, error in mopidy.log is still the same.

Are you saying scrobbler didn’t work in the latest musicbox image? Or that that you tried to update it and then it stopped working?

Pretty much that, yes. Neither does it start after mopidy-scrobbler has been updated nor ntp installed, as explained above.

I’ve gone through my ssh history. Divergence from image (not mentioned in list of things 'done so far ') would also involve:

  • addressing ERROR Your GStreamer installation is missing a plug-in. (Why i’m providing Gstream version output above).
    Scrobbler was not enabled before GStreamer was upgraded, so I can’t tell whether or not it would have been running then. GStreamer was apparently necessary for Spotify functionality. Nothing to scrobble otherwise.

*copy of ./mopidy.conf to root./config/mopidy/mopidy.conf as debug (mopidy -vvvv) indicated mopidy was looking at that location instead. Nevertheless, running config should show the actual config running surely?

Python/pip upgrades/downgrades precede the last few image reflashes so are not relevant to current setup (merely to my unwillingness to test if that fixes it, as I can’t reflash the system quite right now).

Linux MusicBox 4.14.26-v7+ #1099 SMP Wed Mar 14 14:59:28 GMT 2018 armv7l GNU/Linux
Copyright © 2012 Broadcom
version 5afe871e8e58f66e0a39531895d09ed692893267 (clean) (release)