beets: BPD still errors out after pull of issue #2062

Problem

Regarding https://github.com/beetbox/beets/pull/2062 bpd still doesn’t operate properly. It starts to build the directory tree and then gives me an error about bluelet

Running this command in verbose (-vv) mode:

$ beet -vv bpd start 


Led to this problem:
user configuration: /home/bearcat/.config/beets/config.yaml
data directory: /home/bearcat/.config/beets
plugin paths:
Sending event: pluginload
inline: adding album field album_length
artresizer: method is (2, (6, 9, 4))
thumbnails: using IM to write metadata
thumbnails: using GIO to compute URIs
lyrics: Disabling google source: no API key configured.
library database: /home/bearcat/.config/beets/musiclibrary.blb
library directory: /home/hometheater/audio
Sending event: library_opened
the: "REO Speedwagon" -> "REO Speedwagon"
the: "REO Speedwagon" -> "REO Speedwagon"
the: "REO Speedwagon" -> "REO Speedwagon"
the: "Mourning Ritual" -> "Mourning Ritual"
the: "David Bowie" -> "David Bowie"
the: "菅野よう子" -> "菅野よう子"
the: "菅野よう子" -> "菅野よう子"
the: "菅野よう子" -> "菅野よう子"
the: "菅野よう子" -> "菅野よう子"
the: "菅野よう子" -> "菅野よう子"
the: "菅野よう子" -> "菅野よう子"
Building directory tree...
... done.
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/beet", line 9, in <module>
    load_entry_point('beets==1.3.19', 'console_scripts', 'beet')()
  File "/usr/lib64/python2.7/site-packages/beets/ui/__init__.py", line 1259, in main
    _raw_main(args)
  File "/usr/lib64/python2.7/site-packages/beets/ui/__init__.py", line 1246, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/lib64/python2.7/site-packages/beetsplug/bpd/__init__.py", line 1190, in func
    self.start_bpd(lib, host, int(port), password, volume, debug)
  File "/usr/lib64/python2.7/site-packages/beetsplug/bpd/__init__.py", line 1167, in start_bpd
    server.run()
  File "/usr/lib64/python2.7/site-packages/beetsplug/bpd/__init__.py", line 761, in run
    super(Server, self).run()
  File "/usr/lib64/python2.7/site-packages/beetsplug/bpd/__init__.py", line 195, in run
    Connection.handler(self)))
  File "/usr/lib64/python2.7/site-packages/beets/util/bluelet.py", line 393, in run
    exit_te.reraise()
  File "/usr/lib64/python2.7/site-packages/beets/util/bluelet.py", line 217, in reraise
    _reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
  File "/usr/lib64/python2.7/site-packages/beets/util/bluelet.py", line 281, in advance_thread
    next_event = coro.send(value)
  File "/usr/lib64/python2.7/site-packages/beets/util/bluelet.py", line 643, in server
    listener = Listener(host, port)
  File "/usr/lib64/python2.7/site-packages/beets/util/bluelet.py", line 413, in __init__
    self.sock.bind((host, port))
  File "/usr/lib64/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known

Here’s a link to the music files that trigger the bug (if relevant):

Setup

  • OS: Linux jaguarundi 4.1.15-gentoo-r1 #10 SMP Tue Mar 1 00:32:43 MST 2016 x86_64 AMD FX™-6300 Six-Core Processor AuthenticAMD GNU/Linux
  • Python version: 2.7.10-r1 , 3.4.3-r1
  • beets version: beets version 1.3.18 plugins: acousticbrainz, badfiles, bpd, chroma, convert, copyartifacts, duplicates, edit, embedart, fetchart, follow, fromfilename, ftintitle, fuzzy, importadded, info, inline, lastgenre, lyrics, mbcollection, mbsync, missing, mpdstats, play, random, replaygain, rewrite, the, thumbnails, types, web
  • Turning off plugins made problem go away (yes/no): no

My configuration (output of beet config) is:

lyrics:
    bing_lang_from: []
    fallback: No lyrics found
    bing_client_secret: REDACTED
    google_API_key: REDACTED
    force: no
    google_engine_ID: REDACTED
    sources:
    - google
    - lyricwiki
    - lyrics.com
    - musixmatch
    auto: yes
    genius_api_key: REDACTED
    bing_lang_to:
duplicates:
    format: $albumartist - $album - $title
    count: yes
    album: no
    full: no
    keys: []
    move: ''
    tag: ''
    path: no
    copy: ''
    tiebreak: {}
    strict: no
    checksum: ''
    merge: no
    delete: no
play:
    command: gst-play-1.0 --gapless --volume=1.0
    use_folders: no
    raw: yes
    warning_threshold: -2
    warning_treshold: 100
    relative_to:
library: ~/.config/beets/musiclibrary.blb

replace:
    '[\\/]': _
    ^\.: _
    '[\x00-\x1f]': _
    '[<>:"\?\*\|]': _
    \s+$: ''
    ' ': _
    \!: ''
original_date: yes
ftintitle:
    format: (feat. {0})
    auto: yes
    drop: no

plugins: acousticbrainz badfiles bpd chroma convert copyartifacts duplicates edit embedart fetchart follow fromfilename ftintitle fuzzy importadded info inline lastgenre lyrics mbcollection mbsync mpdstats missing play random replaygain rewrite the thumbnails types web
follow:
    auto: yes
    email: bearcatsandor@gmail.com
    password: j@gu@rund1
    userid: 7frytxfvwbjh8llhbif9lkd0zavps9
acousticbrainz:
    auto: yes

paths:
    default: '%lower{%the{$albumartist}/$original_year-$album%if{$albumdisambig,_[$albumdisambig]}/$disc-$track-$title}'
    singleton: '%lower{singletons/%the{$artist}-$title}'
    comp: '%lower{various_artists/%if{$original_year,$original_year,$year}-$album%if{$albumdisambig,_[$albumdisambig]}/$disc-$track-%the{$artist}-$title}'

format_item: $albumartist - $original_year - $album - $title - $length
art_filename: cover
missing:
    format: $albumartist - $album - $title
    count: yes
    total: yes
format_album: $albumartist - $original_year - $album
lastgenre:
    fallback: ''
    canonical: ''
    source: track
    count: 4
    force: yes
    min_weight: 10
    auto: yes
    whitelist: yes
    separator: ', '

import:
    move: yes
    incremental: yes
    detail: yes
    timid: yes
    resume: ask
    log: /tmp/beets_import.log
    write: yes

sort_album: albumartist+ original_year+ album+

match:
    preferred:
        media:
        - Hybrid SACD
        - SACD
        - CD
        - Digital Media|File
mbcollection:
    auto: no
mpd:
    rating: no
    rating_mix: 0.75
    host: localhost
    music_directory: /home/hometheater/audio
    password: REDACTED
    port: 6600
fetchart:
    auto: yes
    google_search: no
    cautious: no
    minwidth: 1500
    sources: coverart albumart fanarttv itunes amazon
    fanarttv_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    enforce_ratio: no
    maxwidth: 0
    store_source: no
    google_key: REDACTED
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
embedart:
    maxwidth: 1000
    compare_threshold: 0
    auto: yes
    ifempty: no
    remove_art_file: no

musicbrainz:
    user: bearcatsandor
    pass: REDACTED
fuzzy:
    threshold: 0.7
    prefix: '~'
sort_item: albumartist+ original_year+ album+ disc+ track+
convert:
    format: flac
    pretend: no
    quiet: no
    formats:
        extension: flac
        flac: gst-launch-1.0 filesrc location="$source" ! decodebin ! audioconvert ! flacenc quality=8 ! flactag ! filesink location="$dest"
        embed: yes
        copy_album_art: yes
        dest: ~/tmp
        alac:
            command: ffmpeg -i $source -y -vn -acodec alac $dest
            extension: m4a
        aac:
            command: ffmpeg -i $source -y -vn -acodec libfaac -aq 100 $dest
            extension: m4a
        opus: ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest
        mp3: ffmpeg -i $source -y -vn -aq 2 $dest
        ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest
        wma: ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest
    never_convert_lossy_files: no
    album_art_maxwidth: 0
    dest:
    auto: no
    threads: 6
    copy_album_art: no
    tmpdir:
    max_bitrate: 500

    paths: {}
    embed: yes
threaded: yes
per_disc_numbering: yes
replaygain:
    backend: gstreamer
    auto: no
    overwrite: yes
    targetlevel: 89
album_fields:
    album_length: "total = 0\nfor item in items:\n    total += item.length\n    return total\n"

ui:
    color: yes
bpd:
    host: localhost
    port: 6600
    volume: 100
    password: REDACTED
directory: /home/hometheater/audio
echonest:
    apikey: 0WIRGAGR6HEDIRCRD
    auto: yes
    upload: yes
    convert: yes
    trunicate: yes
chroma:
    auto: yes
importadded:
    preserve_write_mtimes: no
    preserve_mtimes: no
rewrite: {}
thumbnails:
    auto: yes
    dolphin: no
    force: no
web:
    host: 127.0.0.1
    port: 8337
    cors: ''
pathfields: {}
item_fields: {}
edit:
    itemfields: track title artist album
    albumfields: album albumartist
    ignore_fields: id path
copyartifacts:
    print_ignored: no
    extensions: .*
the:
    a: yes
    patterns: []
    the: yes
    strip: no
    format: '{0}, {1}'


About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments