Run Error: "object has no attribute 'unix_signal_add'"

OS: WIndows 10E 1703 X64

Environment:
Python 2.7

Mopidy Ver:
Mopidy 2.1.0

Conf file:

[core]
cache_dir = C:\mopidy\mopidy\Cache
config_dir = C:\mopidy\mopidy\config
data_dir = C:\mopidy\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  %(message)s
debug_file = C:\mopidy\mopidy\Logs\mopidy.log
config_file =

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

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

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password = Vreedogg1
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 =
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions =
  .jpg
  .jpeg
show_dotfiles = false
follow_symlinks = true
metadata_timeout = 1000

[local]
enabled = false
library = json
media_dir =  ; Must be set.
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = true
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

Dependencies installed:

C:\mopidy>mopidy deps
Executable: C:\Python27\Scripts\mopidy
Platform: Windows-10-10.0.15063
Python: CPython 2.7.13 from C:\Python27\lib
Mopidy: 2.1.0 from c:\python27\lib\site-packages
  setuptools: 36.0.1 from c:\python27\lib\site-packages
  Pykka>=1.1: 1.2.1 from c:\python27\lib\site-packages
  tornado>=3.2: 4.5.1 from c:\python27\lib\site-packages
    backports-abc>=0.4: 0.5 from c:\python27\lib\site-packages
    singledispatch: 3.4.0.3 from c:\python27\lib\site-packages
      six: 1.10.0 from c:\python27\lib\site-packages
    certifi: 2017.4.17 from c:\python27\lib\site-packages
  requests>=2.0: 2.16.5 from c:\python27\lib\site-packages
    chardet<3.1.0,>=3.0.2: 3.0.3 from c:\python27\lib\site-packages
    certifi>=2017.4.17: 2017.4.17 from c:\python27\lib\site-packages
    idna<2.6,>=2.5: 2.5 from c:\python27\lib\site-packages
    urllib3<1.22,>=1.21.1: 1.21.1 from c:\python27\lib\site-packages
GStreamer: 1.12.0.0 from C:\Python27\lib\site-packages\gi
  Detailed information:
    Python wrapper: python-gi 3.24.1
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        alsasink
        osssink
        oss4sink
        flump3dec
        mad

First time noob installing over here, can’t get past this error:

C:\mopidy>python mopidy
INFO     Loading config from builtin defaults
INFO     Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     Loading config from command line options
ERROR    'gi.repository.GLib' object has no attribute 'unix_signal_add'
Traceback (most recent call last):
  File "C:\mopidy\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\commands.py", line 292, in run
    GLib.unix_signal_add(
  File "C:\Python27\lib\site-packages\gi\overrides\__init__.py", line 39, in __getattr__
    return getattr(self._introspection_module, name)
  File "C:\Python27\lib\site-packages\gi\module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'unix_signal_add'
Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\mopidy\mopidy\__main__.py", line 216, in <module>
    sys.exit(main())
  File "C:\mopidy\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\commands.py", line 292, in run
    GLib.unix_signal_add(
  File "C:\Python27\lib\site-packages\gi\overrides\__init__.py", line 39, in __getattr__
    return getattr(self._introspection_module, name)
  File "C:\Python27\lib\site-packages\gi\module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'unix_signal_add'

Any help?!

Since you are running on windows, which Mopidy doesn’t support (yet), you are going to run into unix-specific things like this that simply don’t exist in Windows. If you just want to get things going, just comment that line out, or make it conditional on something like:

if hasattr(GLib, "unix_signal_add"):

I’ll rephrase, ‘might not support (yet)’. There probably won’t be many issues though as we did have it working briefly during gstreamer0.10 days.

Lol, that’s exactly what in my other post I stated :“Seems like it might be a dead end?”.

Anyway, continuing on:

Comment that line out of where? which file?

Then let me be clear, it’s not a dead end. The dependencies should all be available for Windows but the Mopidy codebase will need a bit of updating.

The traceback you provided specifies the line:
File “C:\Python27\lib\site-packages\mopidy\commands.py”, line 292, in run
GLib.unix_signal_add(

@kingosticks

Welp, got a BIT further this time, then python crashed. Never seen that.

Screenshot:

Oh excellent, further is good. I would suggest disabling all the extensions that you can for now and running with verbose logging (-vvv) to see if there are some hints as to the issue.

@kingosticks

so, looks like it’s the [softwaremixer] value.

when I change it to

[softwaremixer]
enabled = false

I get this:


C:\mopidy>mopidy -vvv
INFO     2017-07-18 01:09:55,950 [20008:MainThread] mopidy.__main__
  Starting Mopidy 2.1.0
DEBUG    2017-07-18 01:09:56,017 [20008:MainThread] mopidy.ext
  Loading entry point: mpd = mopidy.mpd:Extension
DEBUG    2017-07-18 01:09:56,017 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-MPD 2.1.0
DEBUG    2017-07-18 01:09:56,017 [20008:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 2.1.0
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 2.1.0
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 2.1.0
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2017-07-18 01:09:56,019 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 2.1.0
DEBUG    2017-07-18 01:09:56,020 [20008:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2017-07-18 01:09:56,020 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 2.1.0
DEBUG    2017-07-18 01:09:56,020 [20008:MainThread] mopidy.ext
  Loading entry point: local = mopidy.local:Extension
DEBUG    2017-07-18 01:09:56,023 [20008:MainThread] mopidy.ext
  Loaded extension: Mopidy-Local 2.1.0
DEBUG    2017-07-18 01:09:56,043 [20008:MainThread] mopidy.ext
  Discovered extensions: mpd, http, stream, m3u, softwaremixer, file, local
DEBUG    2017-07-18 01:09:56,045 [20008:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (dbus not installed)
INFO     2017-07-18 01:09:56,045 [20008:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2017-07-18 01:09:56,046 [20008:MainThread] mopidy.config
  Loading config from C:\mopidy\C failed; it does not exist
DEBUG    2017-07-18 01:09:56,046 [20008:MainThread] mopidy.config
  Loading config from C:\ProgramData\mopidy\mopidy.conf failed; it does not exist
DEBUG    2017-07-18 01:09:56,046 [20008:MainThread] mopidy.config
  Loading config from C:\mopidy\C failed; it does not exist
INFO     2017-07-18 01:09:56,046 [20008:MainThread] mopidy.config
  Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     2017-07-18 01:09:56,049 [20008:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2017-07-18 01:09:56,095 [20008:MainThread] mopidy.ext
  Validating extension: mpd
DEBUG    2017-07-18 01:09:56,099 [20008:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2017-07-18 01:09:56,868 [20008:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2017-07-18 01:09:56,882 [20008:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2017-07-18 01:09:56,884 [20008:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2017-07-18 01:09:56,884 [20008:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2017-07-18 01:09:56,885 [20008:MainThread] mopidy.ext
  Validating extension: local
INFO     2017-07-18 01:09:56,887 [20008:MainThread] mopidy.__main__
  Enabled extensions: mpd, http, file
INFO     2017-07-18 01:09:56,887 [20008:MainThread] mopidy.__main__
  Disabled extensions: m3u, softwaremixer, local, stream
DEBUG    2017-07-18 01:09:56,901 [20008:MainThread] mopidy.commands
  Available Mopidy mixers: none
ERROR    2017-07-18 01:09:56,904 [20008:MainThread] mopidy.commands
  Did not find unique mixer "software". Alternatives are: , none
DEBUG    2017-07-18 01:09:56,908 [20008:MainThread] mopidy.internal.process
  Interrupting main...

C:\mopidy>

Any recomendations?

@kingosticks

Any ideas what to do next?

Re-enable the softwaremixer or set audio/mixer = none. You can’t have a config which specifies to use something and then disables it.

@kingosticks - okay! I did some work!

Looks like python crashes on MPD. I did a process of illimation, and no matter what other extensions are enabled/disabled. if MPD is enalbed, it will crash python.

I got all the way to eneabling ALL extionstion except for MPD, and I can get to the webui!!! But, of course, nothing is there because MPD is not running.

So, here’s the debug log when luanching with MPD ENABLED.

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\mopidy\mopidy

c:\mopidy\mopidy>mopidy --version
Mopidy 2.1.0

c:\mopidy\mopidy>mopidy -vvv
INFO     2017-07-19 04:48:54,729 [15240:MainThread] mopidy.__main__
  Starting Mopidy 2.1.0
DEBUG    2017-07-19 04:48:54,790 [15240:MainThread] mopidy.ext
  Loading entry point: mpd = mopidy.mpd:Extension
DEBUG    2017-07-19 04:48:54,792 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-MPD 2.1.0
DEBUG    2017-07-19 04:48:54,792 [15240:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2017-07-19 04:48:54,792 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 2.1.0
DEBUG    2017-07-19 04:48:54,792 [15240:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2017-07-19 04:48:54,793 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 2.1.0
DEBUG    2017-07-19 04:48:54,793 [15240:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2017-07-19 04:48:54,795 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 2.1.0
DEBUG    2017-07-19 04:48:54,795 [15240:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2017-07-19 04:48:54,795 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 2.1.0
DEBUG    2017-07-19 04:48:54,796 [15240:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2017-07-19 04:48:54,796 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 2.1.0
DEBUG    2017-07-19 04:48:54,796 [15240:MainThread] mopidy.ext
  Loading entry point: local = mopidy.local:Extension
DEBUG    2017-07-19 04:48:54,799 [15240:MainThread] mopidy.ext
  Loaded extension: Mopidy-Local 2.1.0
DEBUG    2017-07-19 04:48:54,825 [15240:MainThread] mopidy.ext
  Discovered extensions: mpd, http, stream, m3u, softwaremixer, file, local
DEBUG    2017-07-19 04:48:54,825 [15240:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (dbus not installed)
INFO     2017-07-19 04:48:54,826 [15240:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2017-07-19 04:48:54,826 [15240:MainThread] mopidy.config
  Loading config from c:\mopidy\mopidy\C failed; it does not exist
DEBUG    2017-07-19 04:48:54,826 [15240:MainThread] mopidy.config
  Loading config from c:\ProgramData\mopidy\mopidy.conf failed; it does not exist
DEBUG    2017-07-19 04:48:54,828 [15240:MainThread] mopidy.config
  Loading config from c:\mopidy\mopidy\C failed; it does not exist
INFO     2017-07-19 04:48:54,828 [15240:MainThread] mopidy.config
  Loading config from c:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     2017-07-19 04:48:54,828 [15240:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2017-07-19 04:48:54,838 [15240:MainThread] mopidy.ext
  Validating extension: mpd
DEBUG    2017-07-19 04:48:54,838 [15240:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2017-07-19 04:48:55,687 [15240:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2017-07-19 04:48:55,690 [15240:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2017-07-19 04:48:55,691 [15240:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2017-07-19 04:48:55,694 [15240:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2017-07-19 04:48:55,694 [15240:MainThread] mopidy.ext
  Validating extension: local
INFO     2017-07-19 04:48:55,697 [15240:MainThread] mopidy.__main__
  Enabled extensions: mpd, http, stream, m3u, softwaremixer, file, local
INFO     2017-07-19 04:48:55,697 [15240:MainThread] mopidy.__main__
  Disabled extensions: none
DEBUG    2017-07-19 04:48:55,858 [15240:MainThread] mopidy.commands
  Available Mopidy mixers: SoftwareMixer
INFO     2017-07-19 04:48:55,858 [15240:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
DEBUG    2017-07-19 04:48:55,859 [15240:MainThread] pykka
  Registered SoftwareMixer (urn:uuid:16d26c9f-a204-44c6-a5b5-54413c40511e)
DEBUG    2017-07-19 04:48:55,861 [15240:MainThread] pykka
  Starting SoftwareMixer (urn:uuid:16d26c9f-a204-44c6-a5b5-54413c40511e)
DEBUG    2017-07-19 04:48:55,861 [15240:MainThread] mopidy.commands
  Mixer volume left unchanged
INFO     2017-07-19 04:48:55,862 [15240:MainThread] mopidy.commands
  Starting Mopidy audio
DEBUG    2017-07-19 04:48:55,862 [15240:MainThread] pykka
  Registered Audio (urn:uuid:079d242a-c228-4c2f-be84-fd8f61eefba5)
DEBUG    2017-07-19 04:48:55,864 [15240:MainThread] pykka
  Starting Audio (urn:uuid:079d242a-c228-4c2f-be84-fd8f61eefba5)
INFO     2017-07-19 04:48:55,865 [15240:MainThread] mopidy.commands
  Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend
DEBUG    2017-07-19 04:48:55,892 [15240:MainThread] pykka
  Registered StreamBackend (urn:uuid:e774e66d-a164-41bf-b845-34d2a93a1fbd)
INFO     2017-07-19 04:48:55,892 [15240:Audio-2] mopidy.audio.actor
  Audio output set to "autoaudiosink"
DEBUG    2017-07-19 04:48:55,892 [15240:MainThread] pykka
  Starting StreamBackend (urn:uuid:e774e66d-a164-41bf-b845-34d2a93a1fbd)
DEBUG    2017-07-19 04:48:55,904 [15240:MainThread] pykka
  Registered M3UBackend (urn:uuid:ed5711c3-b40e-4857-b3c4-42543a13038e)
DEBUG    2017-07-19 04:48:55,904 [15240:MainThread] pykka
  Starting M3UBackend (urn:uuid:ed5711c3-b40e-4857-b3c4-42543a13038e)
DEBUG    2017-07-19 04:48:55,926 [15240:MainThread] pykka
  Registered FileBackend (urn:uuid:bb669919-9651-43ce-9001-b15ed93fc67c)
DEBUG    2017-07-19 04:48:55,930 [15240:MainThread] pykka
  Starting FileBackend (urn:uuid:bb669919-9651-43ce-9001-b15ed93fc67c)
DEBUG    2017-07-19 04:48:55,934 [15240:MainThread] mopidy.local.actor
  Using json as the local library
DEBUG    2017-07-19 04:48:55,936 [15240:MainThread] mopidy.local.json
  Loading library: C:\mopidy\mopidy\local\library.json.gz
INFO     2017-07-19 04:48:55,937 [15240:MainThread] mopidy.local.json
  No local library metadata cache found at C:\mopidy\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     2017-07-19 04:48:55,937 [15240:MainThread] mopidy.local.library
  Loaded 0 local tracks using json
DEBUG    2017-07-19 04:48:55,938 [15240:MainThread] pykka
  Registered LocalBackend (urn:uuid:6e352929-1182-40bd-a28d-79ab3eba07ef)
DEBUG    2017-07-19 04:48:55,938 [15240:MainThread] pykka
  Starting LocalBackend (urn:uuid:6e352929-1182-40bd-a28d-79ab3eba07ef)
INFO     2017-07-19 04:48:55,941 [15240:MainThread] mopidy.commands
  Starting Mopidy core
DEBUG    2017-07-19 04:48:55,946 [15240:MainThread] pykka
  Registered Core (urn:uuid:bb0cb6f2-a112-4d49-9488-f463a46f9a3d)
DEBUG    2017-07-19 04:48:55,946 [15240:MainThread] pykka
  Starting Core (urn:uuid:bb0cb6f2-a112-4d49-9488-f463a46f9a3d)
INFO     2017-07-19 04:48:55,989 [15240:MainThread] mopidy.commands
  Starting Mopidy frontends: MpdFrontend, HttpFrontend


And here’s my config file:

# 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-M3U 2.1.0
#   Mopidy-MPD 2.1.0
#   Mopidy-SoftwareMixer 2.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 = c:\mopidy\mopidy\Cache
config_dir = c:\mopidy\mopidy
data_dir = C:\mopidy\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  %(message)s
debug_file = mopidy.log
config_file =

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

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

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6690
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy
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 = c:\mopidy\mopidy\media

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs = c:\mopidy\mopidy\media
#  $XDG_MUSIC_DIR|Music
#  ~/|Home
#excluded_file_extensions = 
#  .jpg
#  .jpeg
show_dotfiles = false
follow_symlinks = true
metadata_timeout = 1000

[local]
enabled = true
library = json
media_dir = c:\mopidy\mopidy\media
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = true
#excluded_file_extensions = 
#  .directory
#  .html
#  .jpeg
#  .jpg
#  .log
#  .nfo
#  .png
#  .txt

Let me know if I"m getting close!

screenshot:

Excellent work, doing things with a process of elimination is definitely the way to go here. I think the next big step is test if the audio works at all. But first:

The MPD extension is a frontend extension which just provides a way for an MPD client (such as MPDroid) to talk to Mopidy. Exactly like how the HTTP frontend extension provides a way for webclients running in your browser to talk to Mopidy. If, like many people, you are not interested in using an MPD client then the MPD extension is of no use to you and you might as well disable it and forget about it.

The webpage in your screenshot is the default Mopidy page which would normally display a list of all the web client extensions you have installed. Mopidy did not find any web extensions installed, have you explicitly installed any?

What music source(s) are you planning to use? If you want to use your local media files you’ll need to make sure that local/media_dir is pointing to the right place on your computer (you have it set to c:\mopidy\mopidy\media) and then run mopidy local scan to build a cache of the matadata which Mopidy can then use. You’ll see it trying to do that in your log but not finding the cache file as it expects to:

INFO     2017-07-19 04:48:55,937 [15240:MainThread] mopidy.local.json
  No local library metadata cache found at C:\mopidy\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message

@kingosticks

Okay, so that changes things a bit.

  1. So i DO need the MPD extension if I want to connect via android? If so then, YES. I do need that. Have any idea why it is would be crashing when enabled?

  2. Yes, my intent is to host a server side web client that I can access thru my IIS reverse proxy.

  3. Music sources - Mostly MP3, I have an 10TB library of sorted music. it’s not configured as I just put the c:\mopidy\mopidy\media DIR as a placeholder with one MP3 file in it, However, when I do run the the MOPIDY LOCAL SCAN I do get a crash:


C:\WINDOWS\system32>mopidy local scan
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: http, stream, m3u, softwaremixer, file, local
INFO     Disabled extensions: mpd
INFO     Found 0 files in media_dir.
WARNING  Encountered 1 errors while scanning media_dir.
INFO     No local library metadata cache found at C:\mopidy\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     Checking 0 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
ERROR    [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\mopidy\\local\\library.json.gz.f1yk_b'
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 60, in dump
    os.remove(tmp.name)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\mopidy\\local\\library.json.gz.f1yk_b'
Traceback (most recent call last):
  File "C:\Python27\Scripts\mopidy-script.py", line 11, in <module>
    load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 60, in dump
    os.remove(tmp.name)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\mopidy\\local\\library.json.gz.f1yk_b'

C:\WINDOWS\system32>

The operating system is not relevant. You need the MPD extension enabled if you want to connect with an MPD client.

Not without a debug log.

Then you need to install a webclient extension, you do not have one currently.

I think this might be a bug in our code. Try closing the file in C:\Python27\lib\site-packages\mopidy\internal\storage.py by changing it to the following:

    tmp = tempfile.NamedTemporaryFile(
        prefix=basename + '.', dir=directory, delete=False).close()

No, sorry, my above hack won’t work.

Instead, try moving the close after the gzip stuff:

# TODO: cleanup directory/basename.* files.
    tmp = tempfile.NamedTemporaryFile(
        prefix=basename + '.', dir=directory, delete=False)

    try:
        with gzip.GzipFile(fileobj=tmp, mode='wb') as fp:
            json.dump(data, fp, cls=models.ModelJSONEncoder,
                      indent=2, separators=(',', ': '))
        tmp.close()
        os.rename(tmp.name, path)

This is still a bit suspect on Windows:

Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later).

From 10.6. tempfile — Generate temporary files and directories — Python 2.7.18 documentation

EDIT: This is better:

# TODO: cleanup directory/basename.* files.
    tmp = tempfile.NamedTemporaryFile(
        prefix=basename + '.', dir=directory, delete=False).close()

    try:
        with gzip.GzipFile(filename=tmp.name, mode='wb') as fp:
            json.dump(data, fp, cls=models.ModelJSONEncoder,
                      indent=2, separators=(',', ': '))
        os.rename(tmp.name, path)

1 - Got the Front and up with sound!

2 - MPD:

Output when MPD enabled:


C:\WINDOWS\system32>cd c:\mopidy

c:\mopidy>mopidy -vvv
INFO     2017-07-19 09:01:04,464 [24252:MainThread] mopidy.__main__
  Starting Mopidy 2.1.0
DEBUG    2017-07-19 09:01:04,545 [24252:MainThread] mopidy.ext
  Loading entry point: mpd = mopidy.mpd:Extension
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-MPD 2.1.0
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 2.1.0
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 2.1.0
DEBUG    2017-07-19 09:01:04,546 [24252:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2017-07-19 09:01:04,548 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 2.1.0
DEBUG    2017-07-19 09:01:04,548 [24252:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2017-07-19 09:01:04,549 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 2.1.0
DEBUG    2017-07-19 09:01:04,549 [24252:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2017-07-19 09:01:04,549 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 2.1.0
DEBUG    2017-07-19 09:01:04,549 [24252:MainThread] mopidy.ext
  Loading entry point: local = mopidy.local:Extension
DEBUG    2017-07-19 09:01:04,552 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-Local 2.1.0
DEBUG    2017-07-19 09:01:04,552 [24252:MainThread] mopidy.ext
  Loading entry point: soundcloud = mopidy_soundcloud:SoundCloudExtension
DEBUG    2017-07-19 09:01:04,555 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoundCloud 2.0.2
DEBUG    2017-07-19 09:01:04,555 [24252:MainThread] mopidy.ext
  Loading entry point: moped = mopidy_moped:MopedExtension
DEBUG    2017-07-19 09:01:04,556 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-Moped 0.7.1
DEBUG    2017-07-19 09:01:04,558 [24252:MainThread] mopidy.ext
  Loading entry point: api_explorer = mopidy_explorer:APIExplorerExtension
DEBUG    2017-07-19 09:01:04,559 [24252:MainThread] mopidy.ext
  Loaded extension: Mopidy-API-Explorer 1.0.1
DEBUG    2017-07-19 09:01:04,588 [24252:MainThread] mopidy.ext
  Discovered extensions: mpd, http, stream, m3u, softwaremixer, file, local, soundcloud, moped, api_explorer
DEBUG    2017-07-19 09:01:04,591 [24252:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (dbus not installed)
INFO     2017-07-19 09:01:04,591 [24252:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2017-07-19 09:01:04,592 [24252:MainThread] mopidy.config
  Loading config from c:\mopidy\C failed; it does not exist
DEBUG    2017-07-19 09:01:04,592 [24252:MainThread] mopidy.config
  Loading config from c:\ProgramData\mopidy\mopidy.conf failed; it does not exist
DEBUG    2017-07-19 09:01:04,592 [24252:MainThread] mopidy.config
  Loading config from c:\mopidy\C failed; it does not exist
INFO     2017-07-19 09:01:04,592 [24252:MainThread] mopidy.config
  Loading config from c:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     2017-07-19 09:01:04,595 [24252:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2017-07-19 09:01:04,596 [24252:MainThread] mopidy.config
  Ignoring unknown config section: spotify
DEBUG    2017-07-19 09:01:04,596 [24252:MainThread] mopidy.config
  Ignoring unknown config section: spotify_web
DEBUG    2017-07-19 09:01:04,657 [24252:MainThread] mopidy.ext
  Validating extension: mpd
DEBUG    2017-07-19 09:01:04,661 [24252:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2017-07-19 09:01:05,529 [24252:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2017-07-19 09:01:05,530 [24252:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2017-07-19 09:01:05,532 [24252:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2017-07-19 09:01:05,535 [24252:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2017-07-19 09:01:05,536 [24252:MainThread] mopidy.ext
  Validating extension: local
DEBUG    2017-07-19 09:01:05,538 [24252:MainThread] mopidy.ext
  Validating extension: soundcloud
DEBUG    2017-07-19 09:01:05,540 [24252:MainThread] mopidy.ext
  Validating extension: moped
DEBUG    2017-07-19 09:01:05,545 [24252:MainThread] mopidy.ext
  Validating extension: api_explorer
INFO     2017-07-19 09:01:05,549 [24252:MainThread] mopidy.__main__
  Enabled extensions: mpd, http, moped, stream, m3u, softwaremixer, file, api_explorer, local, soundcloud
INFO     2017-07-19 09:01:05,549 [24252:MainThread] mopidy.__main__
  Disabled extensions: none
DEBUG    2017-07-19 09:01:05,750 [24252:MainThread] mopidy.commands
  Available Mopidy mixers: SoftwareMixer
INFO     2017-07-19 09:01:05,752 [24252:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
DEBUG    2017-07-19 09:01:05,753 [24252:MainThread] pykka
  Registered SoftwareMixer (urn:uuid:24c1bba6-59f5-4f9a-b4f6-c4d3734fae88)
DEBUG    2017-07-19 09:01:05,753 [24252:MainThread] pykka
  Starting SoftwareMixer (urn:uuid:24c1bba6-59f5-4f9a-b4f6-c4d3734fae88)
DEBUG    2017-07-19 09:01:05,756 [24252:MainThread] mopidy.commands
  Mixer volume left unchanged
INFO     2017-07-19 09:01:05,756 [24252:MainThread] mopidy.commands
  Starting Mopidy audio
DEBUG    2017-07-19 09:01:05,756 [24252:MainThread] pykka
  Registered Audio (urn:uuid:266c1261-4005-4817-9d25-05d42b2100cf)
DEBUG    2017-07-19 09:01:05,757 [24252:MainThread] pykka
  Starting Audio (urn:uuid:266c1261-4005-4817-9d25-05d42b2100cf)
INFO     2017-07-19 09:01:05,759 [24252:MainThread] mopidy.commands
  Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend, SoundCloudBackend
DEBUG    2017-07-19 09:01:05,769 [24252:MainThread] pykka
  Registered StreamBackend (urn:uuid:0df54f7a-11cf-4af0-b0f7-be365043270c)
INFO     2017-07-19 09:01:05,769 [24252:Audio-2] mopidy.audio.actor
  Audio output set to "autoaudiosink"
DEBUG    2017-07-19 09:01:05,770 [24252:MainThread] pykka
  Starting StreamBackend (urn:uuid:0df54f7a-11cf-4af0-b0f7-be365043270c)
DEBUG    2017-07-19 09:01:05,785 [24252:MainThread] pykka
  Registered M3UBackend (urn:uuid:b1aac964-bf34-48af-93b7-f532a1b755ca)
DEBUG    2017-07-19 09:01:05,785 [24252:MainThread] pykka
  Starting M3UBackend (urn:uuid:b1aac964-bf34-48af-93b7-f532a1b755ca)
DEBUG    2017-07-19 09:01:05,788 [24252:MainThread] pykka
  Registered FileBackend (urn:uuid:c22584ea-df60-42d2-b471-f204f4bca892)
DEBUG    2017-07-19 09:01:05,788 [24252:MainThread] pykka
  Starting FileBackend (urn:uuid:c22584ea-df60-42d2-b471-f204f4bca892)
DEBUG    2017-07-19 09:01:05,799 [24252:MainThread] mopidy.local.actor
  Using json as the local library
DEBUG    2017-07-19 09:01:05,799 [24252:MainThread] mopidy.local.json
  Loading library: C:\mopidy\local\library.json.gz
INFO     2017-07-19 09:01:05,801 [24252:MainThread] mopidy.local.json
  No local library metadata cache found at C:\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     2017-07-19 09:01:05,802 [24252:MainThread] mopidy.local.library
  Loaded 0 local tracks using json
DEBUG    2017-07-19 09:01:05,802 [24252:MainThread] pykka
  Registered LocalBackend (urn:uuid:8b6187d6-7f4e-40ce-a853-107d571fac2d)
DEBUG    2017-07-19 09:01:05,802 [24252:MainThread] pykka
  Starting LocalBackend (urn:uuid:8b6187d6-7f4e-40ce-a853-107d571fac2d)
DEBUG    2017-07-19 09:01:05,805 [24252:MainThread] mopidy_soundcloud.soundcloud
  Requesting https://api.soundcloud.com/me.json?client_id=93e33e327fd8a9b77becd179652272e2
DEBUG    2017-07-19 09:01:05,808 [24252:MainThread] urllib3.connectionpool
  Starting new HTTPS connection (1): api.soundcloud.com
DEBUG    2017-07-19 09:01:06,382 [24252:MainThread] urllib3.connectionpool
  https://api.soundcloud.com:443 "GET /me.json?client_id=93e33e327fd8a9b77becd179652272e2 HTTP/1.1" 200 479
DEBUG    2017-07-19 09:01:06,384 [24252:MainThread] pykka
  Registered SoundCloudBackend (urn:uuid:cc5ccd09-b3fb-4998-8537-6f9cdec6799e)
DEBUG    2017-07-19 09:01:06,385 [24252:MainThread] pykka
  Starting SoundCloudBackend (urn:uuid:cc5ccd09-b3fb-4998-8537-6f9cdec6799e)
INFO     2017-07-19 09:01:06,388 [24252:MainThread] mopidy.commands
  Starting Mopidy core
DEBUG    2017-07-19 09:01:06,394 [24252:MainThread] pykka
  Registered Core (urn:uuid:d00006de-1c98-49b8-97f5-a8a833617fa5)
DEBUG    2017-07-19 09:01:06,394 [24252:MainThread] pykka
  Starting Core (urn:uuid:d00006de-1c98-49b8-97f5-a8a833617fa5)
INFO     2017-07-19 09:01:06,497 [24252:MainThread] mopidy.commands
  Starting Mopidy frontends: MpdFrontend, HttpFrontend

c:\mopidy>



3 - Changed \internal\storage.py Lines 24 - 38

    # Todo: raise an exception in case of error?
    tmp = tempfile.NamedTemporaryFile(
        prefix=basename + '.', dir=directory, delete=False)

    try:
        with gzip.GzipFile(fileobj=tmp, mode='wb') as fp:
            json.dump(data, fp, cls=models.ModelJSONEncoder,
                      indent=2, separators=(',', ': '))
        tmp.close()
        os.rename(tmp.name, path)
    except (IOError, ValueError) as error:
        logger.warning(
            'Loading JSON failed: %s',
            encoding.locale_decode(error))
        return {}

Output:

C:\WINDOWS\system32>mopidy local scan
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: http, moped, stream, m3u, softwaremixer, file, api_explorer, local, soundcloud
INFO     Disabled extensions: mpd
INFO     Found 0 files in media_dir.
WARNING  Encountered 941 errors while scanning media_dir.
INFO     No local library metadata cache found at C:\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     Checking 0 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
ERROR    [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\local\\library.json.gz.d_wpy4'
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 63, in dump
    os.remove(tmp.name)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\local\\library.json.gz.d_wpy4'
Traceback (most recent call last):
  File "C:\Python27\Scripts\mopidy-script.py", line 11, in <module>
    load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 63, in dump
    os.remove(tmp.name)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\mopidy\\local\\library.json.gz.d_wpy4'
  1. Great
  2. Oh dear.
  3. You have changed the wrong lines. My change was to dump, not load.

@kingosticks

1 - “oh dear” Is that bad?

3 - well got further! Not sure why it says 0 files, there’s about 20K MP3s in e:\music.

C:\WINDOWS\system32>mopidy local scan
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: http, moped, stream, m3u, softwaremixer, file, api_explorer, local, soundcloud
INFO     Disabled extensions: mpd
INFO     Found 0 files in media_dir.
WARNING  Encountered 941 errors while scanning media_dir.
INFO     No local library metadata cache found at C:\mopidy\local\library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     Checking 0 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
INFO     Done scanning.

C:\WINDOWS\system32>

It’s an “oh dear” there’s no hints to go on there. I’d probably try to debug it using GDB but I have no idea if that’s available or sensible on Windows.

You should be able to run local scan with verbose logging too, maybe that’ll point to something.

@kingosticks

Not sure what file it’s talking about

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>mopidy -vvv local scan
INFO     2017-07-19 10:49:35,903 [37760:MainThread] mopidy.__main__
  Starting Mopidy 2.1.0
DEBUG    2017-07-19 10:49:35,961 [37760:MainThread] mopidy.ext
  Loading entry point: mpd = mopidy.mpd:Extension
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-MPD 2.1.0
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 2.1.0
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 2.1.0
DEBUG    2017-07-19 10:49:35,963 [37760:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2017-07-19 10:49:35,964 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 2.1.0
DEBUG    2017-07-19 10:49:35,964 [37760:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2017-07-19 10:49:35,964 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 2.1.0
DEBUG    2017-07-19 10:49:35,964 [37760:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2017-07-19 10:49:35,966 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 2.1.0
DEBUG    2017-07-19 10:49:35,966 [37760:MainThread] mopidy.ext
  Loading entry point: local = mopidy.local:Extension
DEBUG    2017-07-19 10:49:35,970 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-Local 2.1.0
DEBUG    2017-07-19 10:49:35,970 [37760:MainThread] mopidy.ext
  Loading entry point: soundcloud = mopidy_soundcloud:SoundCloudExtension
DEBUG    2017-07-19 10:49:35,971 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoundCloud 2.0.2
DEBUG    2017-07-19 10:49:35,971 [37760:MainThread] mopidy.ext
  Loading entry point: moped = mopidy_moped:MopedExtension
DEBUG    2017-07-19 10:49:35,973 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-Moped 0.7.1
DEBUG    2017-07-19 10:49:35,973 [37760:MainThread] mopidy.ext
  Loading entry point: api_explorer = mopidy_explorer:APIExplorerExtension
DEBUG    2017-07-19 10:49:35,974 [37760:MainThread] mopidy.ext
  Loaded extension: Mopidy-API-Explorer 1.0.1
DEBUG    2017-07-19 10:49:35,996 [37760:MainThread] mopidy.ext
  Discovered extensions: mpd, http, stream, m3u, softwaremixer, file, local, soundcloud, moped, api_explorer
DEBUG    2017-07-19 10:49:35,996 [37760:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (dbus not installed)
INFO     2017-07-19 10:49:35,996 [37760:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2017-07-19 10:49:35,997 [37760:MainThread] mopidy.config
  Loading config from C:\WINDOWS\system32\C failed; it does not exist
DEBUG    2017-07-19 10:49:35,997 [37760:MainThread] mopidy.config
  Loading config from C:\ProgramData\mopidy\mopidy.conf failed; it does not exist
DEBUG    2017-07-19 10:49:35,997 [37760:MainThread] mopidy.config
  Loading config from C:\WINDOWS\system32\C failed; it does not exist
INFO     2017-07-19 10:49:35,997 [37760:MainThread] mopidy.config
  Loading config from C:\Users\Administrator\AppData\Local\mopidy\mopidy.conf
INFO     2017-07-19 10:49:36,000 [37760:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2017-07-19 10:49:36,002 [37760:MainThread] mopidy.config
  Ignoring unknown config section: spotify
DEBUG    2017-07-19 10:49:36,002 [37760:MainThread] mopidy.config
  Ignoring unknown config section: spotify_web
DEBUG    2017-07-19 10:49:36,016 [37760:MainThread] mopidy.ext
  Validating extension: mpd
DEBUG    2017-07-19 10:49:36,017 [37760:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2017-07-19 10:49:36,910 [37760:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2017-07-19 10:49:36,911 [37760:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2017-07-19 10:49:36,913 [37760:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2017-07-19 10:49:36,914 [37760:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2017-07-19 10:49:36,917 [37760:MainThread] mopidy.ext
  Validating extension: local
DEBUG    2017-07-19 10:49:36,921 [37760:MainThread] mopidy.ext
  Validating extension: soundcloud
DEBUG    2017-07-19 10:49:36,924 [37760:MainThread] mopidy.ext
  Validating extension: moped
DEBUG    2017-07-19 10:49:36,927 [37760:MainThread] mopidy.ext
  Validating extension: api_explorer
INFO     2017-07-19 10:49:36,931 [37760:MainThread] mopidy.__main__
  Enabled extensions: http, moped, stream, m3u, softwaremixer, file, api_explorer, local, soundcloud
INFO     2017-07-19 10:49:36,933 [37760:MainThread] mopidy.__main__
  Disabled extensions: mpd
DEBUG    2017-07-19 10:49:37,085 [37760:MainThread] mopidy.local.commands
  Using json as the local library
INFO     2017-07-19 10:49:37,207 [37760:MainThread] mopidy.local.commands
  Found 0 files in media_dir.
WARNING  2017-07-19 10:49:37,209 [37760:MainThread] mopidy.local.commands
  Encountered 941 errors while scanning media_dir.
DEBUG    2017-07-19 10:49:37,209 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Gil Scott-Heron'
DEBUG    2017-07-19 10:49:37,210 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Black Eyed Peas'
DEBUG    2017-07-19 10:49:37,210 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Beyonc\xc3\xa9'
DEBUG    2017-07-19 10:49:37,210 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Tiesto vs Diplo'
DEBUG    2017-07-19 10:49:37,211 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Monty Are I'
DEBUG    2017-07-19 10:49:37,213 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Framing Hanley'
DEBUG    2017-07-19 10:49:37,213 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for "e:\\music\\Lil' Boosie"
DEBUG    2017-07-19 10:49:37,214 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Mo'
DEBUG    2017-07-19 10:49:37,214 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Sets'
DEBUG    2017-07-19 10:49:37,216 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Heather Headley'
DEBUG    2017-07-19 10:49:37,220 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Roots'
DEBUG    2017-07-19 10:49:37,221 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Stabbing Westward'
DEBUG    2017-07-19 10:49:37,223 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\M\xd8'
DEBUG    2017-07-19 10:49:37,223 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Sia'
DEBUG    2017-07-19 10:49:37,223 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\P.O.D'
DEBUG    2017-07-19 10:49:37,224 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Matt & Kim'
DEBUG    2017-07-19 10:49:37,226 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\30 Seconds to Mars'
DEBUG    2017-07-19 10:49:37,227 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Gil Scott Heron'
DEBUG    2017-07-19 10:49:37,519 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Destructo'
DEBUG    2017-07-19 10:49:37,519 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Sum 41'
DEBUG    2017-07-19 10:49:37,526 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Danny Daze'
DEBUG    2017-07-19 10:49:37,530 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\MSTRKRFT'
DEBUG    2017-07-19 10:49:37,532 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Maceo Plex'
DEBUG    2017-07-19 10:49:37,532 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Mark Farina'
DEBUG    2017-07-19 10:49:37,532 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Richie Hawtin'
DEBUG    2017-07-19 10:49:37,532 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Stone Sour'
DEBUG    2017-07-19 10:49:37,533 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Chus & Ceballos'
DEBUG    2017-07-19 10:49:37,535 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Soundtrack'
DEBUG    2017-07-19 10:49:37,535 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Thrillseekers'
DEBUG    2017-07-19 10:49:37,536 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Tiesto feat. Kay'
DEBUG    2017-07-19 10:49:37,536 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Dubfire'
DEBUG    2017-07-19 10:49:37,536 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Awell'
DEBUG    2017-07-19 10:49:37,536 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Afrojack'
DEBUG    2017-07-19 10:49:37,538 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Billy Joel'
DEBUG    2017-07-19 10:49:37,538 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Disco Fries'
DEBUG    2017-07-19 10:49:37,539 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Seether'
DEBUG    2017-07-19 10:49:37,539 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Soulbrothers'
DEBUG    2017-07-19 10:49:37,539 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Medina'
DEBUG    2017-07-19 10:49:37,539 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Nicole Moudaber'
DEBUG    2017-07-19 10:49:37,540 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Chris Jackson'
DEBUG    2017-07-19 10:49:37,540 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Band Of Horses'
DEBUG    2017-07-19 10:49:37,542 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\OutKast'
DEBUG    2017-07-19 10:49:37,542 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Finch'
DEBUG    2017-07-19 10:49:37,543 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Chiller Twist'
DEBUG    2017-07-19 10:49:37,543 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Jay-Z-Kanye West'
DEBUG    2017-07-19 10:49:37,545 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Denzal Park & Dave Winnel'
DEBUG    2017-07-19 10:49:37,545 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Andy Caldwell'
DEBUG    2017-07-19 10:49:37,546 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Route 94'
DEBUG    2017-07-19 10:49:37,546 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\George Acosta'
DEBUG    2017-07-19 10:49:37,546 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Mark Lower'
DEBUG    2017-07-19 10:49:37,546 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Grey Daze'
DEBUG    2017-07-19 10:49:37,548 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Taproot'
DEBUG    2017-07-19 10:49:37,548 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Black Eyed Peas'
DEBUG    2017-07-19 10:49:37,549 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Avicii & Sebastien Drums'
DEBUG    2017-07-19 10:49:37,549 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Genix'
DEBUG    2017-07-19 10:49:37,549 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Kele'
DEBUG    2017-07-19 10:49:37,549 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Cassian'
DEBUG    2017-07-19 10:49:37,551 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Candlebox'
DEBUG    2017-07-19 10:49:37,551 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Quintino'
DEBUG    2017-07-19 10:49:37,556 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\desktop.ini'
DEBUG    2017-07-19 10:49:37,558 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Yellowcard'
DEBUG    2017-07-19 10:49:37,558 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Transformers Soundtrack'
DEBUG    2017-07-19 10:49:37,559 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Ten Walls'
DEBUG    2017-07-19 10:49:37,559 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\KMFDM'
DEBUG    2017-07-19 10:49:37,559 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Citizen Cope'
DEBUG    2017-07-19 10:49:37,559 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Eric Prydz'
DEBUG    2017-07-19 10:49:37,561 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The 8th Note'
DEBUG    2017-07-19 10:49:37,561 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\RAC'
DEBUG    2017-07-19 10:49:37,561 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Pressure 4-5'
DEBUG    2017-07-19 10:49:37,561 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\James young'
ds
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\3LAU'
DEBUG    2017-07-19 10:49:38,049 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Shyne'
DEBUG    2017-07-19 10:49:38,049 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Julio Navas'
DEBUG    2017-07-19 10:49:38,049 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for "e:\\music\\Lil' Kim"
DEBUG    2017-07-19 10:49:38,051 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Red Jumpsuit Apparatus'
DEBUG    2017-07-19 10:49:38,051 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Unknown Artist'
DEBUG    2017-07-19 10:49:38,052 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Dank'
DEBUG    2017-07-19 10:49:38,052 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Mr Little Jeans'
DEBUG    2017-07-19 10:49:38,052 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Mike Posner'
DEBUG    2017-07-19 10:49:38,052 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\DallasK'
DEBUG    2017-07-19 10:49:38,053 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Antoine Clamaran & Mario Ochoa feat. Lulu Hugues'
DEBUG    2017-07-19 10:49:38,055 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\The Fray'
DEBUG    2017-07-19 10:49:38,055 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\Drift'
DEBUG    2017-07-19 10:49:38,056 [37760:MainThread] mopidy.local.commands
  Scan error FindError(u'Sym/hardlink loop found.', None) for 'e:\\music\\John Tejada'
DEBUG    2017-07-19 10:49:38,056 [37760:MainThread] mopidy.local.json
  Loading library: C:\mopidy\local\library.json.gz
INFO     2017-07-19 10:49:38,059 [37760:MainThread] mopidy.local.commands
  Checking 0 tracks from library.
INFO     2017-07-19 10:49:38,059 [37760:MainThread] mopidy.local.commands
  Removing 0 missing tracks.
INFO     2017-07-19 10:49:38,059 [37760:MainThread] mopidy.local.commands
  Found 0 tracks which need to be updated.
INFO     2017-07-19 10:49:38,059 [37760:MainThread] mopidy.local.commands
  Scanning...
INFO     2017-07-19 10:49:38,059 [37760:MainThread] mopidy.local.commands
  Scanned 0 of 0 files in 0s.
ERROR    2017-07-19 10:49:38,062 [37760:MainThread] mopidy.__main__
  [Error 183] Cannot create a file when that file already exists
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 58, in dump
    os.rename(tmp.name, path)
WindowsError: [Error 183] Cannot create a file when that file already exists
Traceback (most recent call last):
  File "C:\Python27\Scripts\mopidy-script.py", line 11, in <module>
    load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
  File "C:\Python27\lib\site-packages\mopidy\__main__.py", line 134, in main
    return args.command.run(args, proxied_config)
  File "C:\Python27\lib\site-packages\mopidy\local\commands.py", line 167, in run
    library.close()
  File "C:\Python27\lib\site-packages\mopidy\local\json.py", line 172, in close
    'tracks': self._tracks.values()
  File "C:\Python27\lib\site-packages\mopidy\internal\storage.py", line 58, in dump
    os.rename(tmp.name, path)
WindowsError: [Error 183] Cannot create a file when that file already exists

C:\WINDOWS\system32>