Skip to content

Error: MusicBrainz not reachable #5978

Description

@Th3K1ngP1n

Problem

Running this command in verbose (-vv) mode:

plugin paths: 
** error loading plugin musicbrainz:
Traceback (most recent call last):
  File "/home/max/.local/share/pipx/venvs/beets/lib/python3.12/site-packages/beets/plugins.py", line 355, in load_plugins
    namespace = __import__(modname, None, None)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'beetsplug.musicbrainz'
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
Sending event: pluginload
library database: *****
library directory: *****
Sending event: library_opened
Sending event: import_begin
ignoring '.DS_Store' due to ignore rule '.*'
Sending event: import_task_created
Sending event: import_task_start

followed by Requesting MusicBrainz release  **
Sending event: mb_track_extract

then it hangs and rarely finishes.

Led to this problem:

(paste here)

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

Setup

  • OS: Ubuntu
  • Python version: Python 3.12.3
  • beets version: version 2.3.1
  • Turning off plugins made problem go away (yes/no): no

My configuration (output of beet config) is:

directory: ****
library: ****
#library: ****
import:
    none_rec_action: ask
    copy: no
    move: no
    log: beetslog.txt

match:
    strong_rec_thresh: 0.20

paths:
  default: $albumartist/$album/$track $title

art_filename: cover

plugins: lyrics fetchart info lastgenre edit replaygain embedart ftintitle importreplace musicbrainz

musicbrainz:
    host: musicbrainz.org
    https: no
    ratelimit: 1
    ratelimit_interval: 1.0
    searchlimit: 5
    extra_tags: []
    genres: no
    external_ids:
        discogs: no
        bandcamp: no
        spotify: no
        deezer: no
        beatport: no
        tidal: no

lastgenre:
  auto: true
  force: yes
  prefer_specific: true
  separator: '; '
  source: album
  count: 4
  min_weight: 15


#deezer:
#   source_weight: 0.5

#discogs:
 #  source_weight: 0.5
  # append_style_genre: true
   #genre_separator: "; "
   #user_token: "redacted"

#beatport4:
 #   source_weight: 0.0
  #  art: yes
   # art_overwrite: yes
    #username: redacted
   # password: mypassword

lyrics:
    auto: yes
    translate:
        api_key:
        from_languages: [en]
        to_language:
    dist_thresh: 0.11
    fallback: null
    force: no
    print: no
    sources: [lrclib, genius]
    synced: yes

fetchart:
  auto: yes
  high_resolution: yes
  sources:
        - itunes
        - coverart: release
        - beatport
        - coverart: release
        - Amazon
        - coverart: release

replaygain:
    backend: ffmpeg
    auto: no

ftintitle:
    auto: yes
    keep_in_artist: yes

edit:
    albumfields: album albumartist genre artist artist_sort composer length
    itemfields: track title artist artists artist_sort album genre composer length mb_artistid mb_artistids

embedart:
    auto: yes


importreplace:
  replacements:
    - item_fields:
        - albumartist
        - albumartist_credit
        - albumartist_sort
        - artist
        - artist_credit
        - artist_sort
        - artists
        - artists_credit
        - artists_ids
        - artists_sort
        - composer


      album_fields:
        - albumartist
        - albumartist_credit
        - albumartist_sort
        - artist
        - artist_credit
        - artist_sort
        - artists
        - artists_credit
        - artists_ids
        - artists_sort
        - composer

      replace:
        ',': ';'
        ' b2b ': '; '
        ', ': ';'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions