New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning local media fails: ERROR 'int' object has no attribute 'load' #1298

Closed
vasyugan opened this Issue Oct 4, 2015 · 5 comments

Comments

3 participants
@vasyugan

vasyugan commented Oct 4, 2015

mopidy running on a raspberrypi 1b with Raspbian Jessie. The media directory is mounted via NFS from another raspberrypi. Here is the console output:

Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan" as user mopidy

INFO     Starting Mopidy 1.1.1
INFO     Loading config from builtin defaults
INFO     Loading config from /etc/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: mpd, http, stream, podcast-gpodder, m3u, podcast-itunes, softwaremixer, file, musicbox_webclient, podcast, local, tunein, soundcloud
INFO     Disabled extensions: none
WARNING  Local library images not found
INFO     Found 8597 files in media_dir.
ERROR    'int' object has no attribute 'load'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 158, in main
    return args.command.run(args, proxied_config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 91, in run
    num_tracks = library.load()
AttributeError: 'int' object has no attribute 'load'
Traceback (most recent call last):
  File "/usr/bin/mopidy", line 9, in <module>
    load_entry_point('Mopidy==1.1.1', 'console_scripts', 'mopidy')()
  File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 158, in main
    return args.command.run(args, proxied_config)
  File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 91, in run
    num_tracks = library.load()
AttributeError: 'int' object has no attribute 'load'
@adamcik

This comment has been minimized.

Member

adamcik commented Oct 4, 2015

WARNING Local library images not found is the key line, seems we crash like this when we are configured to use a local library provider that does not exists / isn't installed.

@adamcik

This comment has been minimized.

Member

adamcik commented Oct 4, 2015

So to workaround this make sure mopidy-local-images is installed, and/or configure an installed library provider.

To reproduce simply run: mopidy -o local/library=foo local scan

@vasyugan

This comment has been minimized.

vasyugan commented Oct 4, 2015

sorry. My bad. I re-used the old config without reinstalling all components

@kdelwat

This comment has been minimized.

Contributor

kdelwat commented Oct 4, 2015

I'd like to take a shot at catching this error if that sounds alright.

@adamcik

This comment has been minimized.

Member

adamcik commented Oct 4, 2015

Feel free :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment