Raspberry PI 3 ERROR need more than 1 value to unpack

Hello,

I am new to Mopidy, and this the first time I am installing Mopidy on raspberry pi.

I am trying to add it as a skill to my mycroft AI (PI Croft, based on Raspbian Jessie lite).

I am receiving the following error when trying to perform a 'mopidy local sca

INFO     Starting Mopidy 2.1.0
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: spotify, mpd, http, stream, m3u, softwaremixer, file, local, local-sqlite
INFO     Disabled extensions: none
ERROR    need more than 1 value to unpack
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 81, in run
    library = _get_library(args, config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 28, in _get_library
    return libraries[library_name](config)
  File "/usr/lib/python2.7/dist-packages/mopidy_local_sqlite/library.py", line 36, in __init__
    name, uri = line.rsplit(None, 1)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
  File "/usr/bin/mopidy", line 9, in <module>
    load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
  File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 81, in run
    library = _get_library(args, config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 28, in _get_library
    return libraries[library_name](config)
  File "/usr/lib/python2.7/dist-packages/mopidy_local_sqlite/library.py", line 36, in __init__
    name, uri = line.rsplit(None, 1)
ValueError: need more than 1 value to unpack

Below mentioned is my mopidy.config file settings.

# For further information about options in this file see:
#   http://docs.mopidy.com/
#
# The initial commented out values reflect the defaults as of:
#   Mopidy 2.1.0
#   Mopidy-File 2.1.0
#   Mopidy-HTTP 2.1.0
#   Mopidy-Local 2.1.0
#   Mopidy-Local-SQLite 1.0.0
#   Mopidy-M3U 2.1.0
#   Mopidy-MPD 2.1.0
#   Mopidy-SoftwareMixer 2.1.0
#   Mopidy-Spotify 3.1.0
#   Mopidy-Stream 2.1.0
#
# Available options and defaults might have changed since then,
# run `mopidy config` to see the current effective config and
# `mopidy --version` to check the current version.

[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
#restore_state = false

[logging]
#color = true
#console_format = %(levelname)-8s %(message)s
#debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(mes$
#debug_file = mopidy.log
#config_file =

[audio]
#mixer = software
#mixer_volume =
#output = autoaudiosink
#buffer_time =

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

[spotify]
enabled = true
username = spotifypaneri
password = (my password)
client_id = 18cbd8605d9045208e6862972fb89688
client_secret = ***************
#bitrate = 160
#volume_normalization = true
#private_session = false
#timeout = 10
#allow_cache = true
#allow_network = true
#allow_playlists = true
#search_album_count = 20
#search_artist_count = 10
#search_track_count = 50
#toplist_countries =

[local-sqlite]
enabled = true
directories = /home/mycroft/music
  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

[mpd]
#enabled = true
#hostname = 127.0.0.1
#port = 6600
#password =
#max_connections = 20
#connection_timeout = 60
#zeroconf = Mopidy MPD server on $hostname
#command_blacklist =
#  listall
#  listallinfo
#default_playlist_scheme = m3u

[http]
#enabled = true
#hostname = 127.0.0.1
#port = 6680
#static_dir =
#zeroconf = Mopidy HTTP server on $hostname

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

[m3u]
#enabled = true
#base_dir =
#default_encoding = latin-1
#default_extension = .m3u8
#playlists_dir =

[softwaremixer]
#enabled = true

[file]
enabled = true
media_dirs = /home/mycroft/music
  $XDG_MUSIC_DIR|Music
  ~/|Home
#excluded_file_extensions =
#  .jpg
#  .jpeg
#show_dotfiles = false
#follow_symlinks = false
#metadata_timeout = 1000

[local]
enabled = true
library = sqlite
media_dir = /home/mycroft/music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions =
#  .directory
#  .html
#  .jpeg
#  .jpg
#  .log
#  .nfo
#  .png
#  .txt

I don’t know what I am doing wrong.

I am open to suggestions on changing my direction of adding this or any other similar skill to Mycroft AI.

Thanks in advance.

Remove /home/mycroft/music from your local-sqlite section. The config settings for this extension can be found at https://github.com/mopidy/mopidy-local-sqlite/blob/develop/README.rst

I edited your post to remove your Spotify secret, use mopidy config to display a safe version of your config suitable for sharing.

@kingosticks, Nick thanks for all your help. It works now. I am going ahead with adding the skills. You are a Star.

No problem, glad to hear it.