Mopidy Discourse

Mopidy Local cannot scan local directory (operation forbidden on released memoryview object)

My mopidy cannot scan files from the local directory. Can someone support?

ERROR 2020-12-26 15:19:22,274 [4286:MainThread] mopidy.main
operation forbidden on released memoryview object
Traceback (most recent call last):
File “/usr/lib/python3.9/site-packages/mopidy/main.py”, line 143, in main
return args.command.run(args, proxied_config)
File “~/.local/lib/python3.9/site-packages/mopidy_local/commands.py”, line 95, in run
self._scan_metadata(
File “~/.local/lib/python3.9/site-packages/mopidy_local/commands.py”, line 218, in _scan_metadata
result = scanner.scan(file_uri)
File “/usr/lib/python3.9/site-packages/mopidy/audio/scan.py”, line 70, in scan
tags, mime, have_audio, duration = _process(pipeline, timeout)
File “/usr/lib/python3.9/site-packages/mopidy/audio/scan.py”, line 268, in _process
tags.update(tags_lib.convert_taglist(taglist))
File “/usr/lib/python3.9/site-packages/mopidy/audio/tags.py”, line 83, in convert_taglist
if data:
ValueError: operation forbidden on released memoryview object

A fix for this was merged recently but there’s not a release that contains it yet. https://github.com/mopidy/mopidy/pull/1948

I’ve released Mopidy 3.1.1 now, which contains the bug fix for this issue.

2 Likes