# Scrobbler error in logs

**URL:** https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085
**Category:** Pi MusicBox (archive)
**Created:** [February 5, 2019, 2:03pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085 "2019-02-05T14:03:00Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 5, 2019, 2:03pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/1 "2019-02-05T14:03:00Z")

</div>

Hi,  
each time I boot (and each time I run a manual rescan) I see this message:

ERROR Extension scrobbler failed during setup, this might have left the registry in a bad state.  
File “/usr/local/lib/python2.7/dist-packages/mopidy\_scrobbler/ **init**.py”, line 28, in setup  
File “/usr/local/lib/python2.7/dist-packages/mopidy\_scrobbler/frontend.py”, line 10, in

How can I fix it? I have correctly set up Last.fm entry.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 5, 2019, 2:51pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/2 "2019-02-05T14:51:10Z")

</div>

Crud. I think I picked up the latest version of pylast in RC7 which only supports python3. I would suggest downgrading pylast to \<3.0.0. Sorry about that.

If you run `mopidy deps` it should confirm this.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 5, 2019, 3:19pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/3 "2019-02-05T15:19:38Z")

</div>

To which version? With pip install --upgrade pylast-xxx ?

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 5, 2019, 3:26pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/4 "2019-02-05T15:26:46Z")

</div>

Actually, I am not sure it is this. Please post your deps output.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 5, 2019, 3:30pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/5 "2019-02-05T15:30:29Z")

</div>

In fact, I think it’s almost the opposite problem. The version of mopidy-scrobbler is too old for the latest (python2) version of pylast.

```auto
pip install --upgrade mopidy-scrobbler

```

I don’t know why I keep guess like this. `mopidy deps` will have the actual answer.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 5, 2019, 3:43pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/6 "2019-02-05T15:43:45Z")

</div>

> [@kingosticks](#):
>
> pip install --upgrade mopidy-scrobbler

I have upgraded and this is the related output of `mopidy deps`:

```
`pylast>=1.6.0: 2.0.0 from /usr/local/lib/python2.7/dist-packages`

```

But still, running a manual scan:

```
mopidy local scan
/usr/local/lib/python2.7/dist-packages/mopidy/ext.py:201: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
  extension_class = entry_point.load(require=False)
INFO Starting Mopidy 1.1.2
INFO Loading config from builtin defaults
INFO Loading config from /root/.config/mopidy/mopidy.conf
INFO Loading config from command line options
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 10, 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'

```

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 5, 2019, 6:37pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/7 "2019-02-05T18:37:53Z")

</div>

Please don’t truncate the output, post everything unless you already know what is wrong. The full python traceback would have been quite useful in the first post.

Is this Pi Musicbox RC7?

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 5, 2019, 7:02pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/8 "2019-02-05T19:02:50Z")

</div>

I have downloaded the img last week from your website. How to check the version?

Tomorrow I will provide full output of deps.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 6, 2019, 8:38am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/9 "2019-02-06T08:38:08Z")

</div>

Yes, I confirm it is RC7 version.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 6, 2019, 10:49am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/10 "2019-02-06T10:49:46Z")

</div>

As the deps output is very long, I have put it into a pastebin here: [https://pastebin.com/amETzgeU](https://pastebin.com/amETzgeU)

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 6, 2019, 8:02pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/11 "2019-02-06T20:02:03Z")

</div>

Any follow-up in this issue? It is crashing local scan. I am going to disable last.fm and check again.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 7, 2019, 11:06am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/12 "2019-02-07T11:06:17Z")

</div>

The version of python available in RC7 is too old to work with pylast. pylast is relatively aggressive in what they support. This is not a simple fix and I don’t want to spend my time on it. I can only suggest you disable the scrobbler extension entirely.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 7, 2019, 11:40am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/13 "2019-02-07T11:40:55Z")

</div>

Disabled. Now the scan is free of errors.

- Sent from my mobile phone. Sorry for typos -

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [February 7, 2019, 11:58am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/14 "2019-02-07T11:58:39Z")

</div>

And to be clear, it’s not that I am happy with things that are broken, it’s just that spending lots of my time supporting the old codebase means zero time and energy for the new one - as the last few years have made very clear. And this makes me considerably more unhappy.

---

<div class="post-metadata">

### Author: ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)
#### Post date: [February 7, 2019, 1:24pm UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/15 "2019-02-07T13:24:00Z")

</div>

we are all very grateful to you for your hard work. Don’t be too unhappy!

---

<div class="post-metadata">

### Author: ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)
#### Post date: [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/scrobbler-error-in-logs/3085/16 "2026-02-19T11:47:01Z")

</div>


