Traceback error

Hello. Beets works away matches and tagging fine, then it stops with this error

Traceback (most recent call last):
  File "/usr/bin/beet", line 11, in <module>
    load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1253, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/lib/python3.8/site-packages/beets/ui/commands.py", line 955, in import_func
    import_files(lib, paths, query)
  File "/usr/lib/python3.8/site-packages/beets/ui/commands.py", line 925, in import_files
    session.run()
  File "/usr/lib/python3.8/site-packages/beets/importer.py", line 329, in run
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/lib/python3.8/site-packages/beets/util/pipeline.py", line 445, in run_parallel
    six.reraise(exc_info[0], exc_info[1], exc_info[2])
  File "/usr/lib/python3.8/site-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3.8/site-packages/beets/util/pipeline.py", line 312, in run
    out = self.coro.send(msg)
  File "/usr/lib/python3.8/site-packages/beets/util/pipeline.py", line 194, in coro
    func(*(args + (task,)))
  File "/usr/lib/python3.8/site-packages/beets/importer.py", line 1351, in lookup_candidates
    task.lookup_candidates()
  File "/usr/lib/python3.8/site-packages/beets/importer.py", line 641, in lookup_candidates
    autotag.tag_album(self.items, search_ids=self.search_ids)
  File "/usr/lib/python3.8/site-packages/beets/autotag/match.py", line 461, in tag_album
    _add_candidate(items, candidates, matched_candidate)
  File "/usr/lib/python3.8/site-packages/beets/autotag/match.py", line 377, in _add_candidate
    dist = distance(items, info, mapping)
  File "/usr/lib/python3.8/site-packages/beets/autotag/match.py", line 202, in distance
    diff = abs(album_info.year - original)
TypeError: unsupported operand type(s) for -: 'list' and 'int'

Is there enough info there for anyone to try and help me?

Here is my config

plugins: fetchart embedart convert scrub replaygain lastgenre chroma web discogs spotify beatport ftintitle embedart mbsync follow #deezer
directory: /music
library: /config/musiclibrary.blb
art_filename: albumart
threaded: yes
original_date: no
per_disc_numbering: no

match:
    strong_rec_thresh: 0.25
    preferred:
        countries: ['GB|UK' ,'US']
        media: ['CD', 'Digital Media|File']
        original_year: yes

convert:
    auto: no
    ffmpeg: /usr/bin/ffmpeg
    opts: -ab 320k -ac 2 -ar 48000
    max_bitrate: 320
    threads: 1
    
paths:
    default: $albumartist/$album%aunique{} ($year)/$track - $title
    singleton: Non-Album/$artist - $title
    comp: Compilations/$album%aunique{}  ($year)/$track - $title
    albumtype_soundtrack: Soundtracks/$album  ($year)/$track $title 
        
import:
    write: yes
    copy: no
    move: yes
    resume: ask
    incremental: yes
    quiet_fallback: skip
    timid: no
    log: /config/beet.log

lastgenre:
    auto: yes
    source: album

embedart:
    auto: yes

fetchart:
    auto: yes
    
replaygain:
    auto: yes
    overwrite: yes

scrub:
    auto: yes

replace:
    '^\.': _
    '[\x00-\x1f]': _
    '[<>:"\?\*\|]': _
    '[\xE8-\xEB]': e
    '[\xEC-\xEF]': i
    '[\xE2-\xE6]': a
    '[\xF2-\xF6]': o
    '[\xF8]': o
    '\.$': _
    '\s+$': ''

web:
    host: 0.0.0.0
    port: 8337
    
discogs:
    source_weight: 0.0
    
beatport :
    source_weight: 0.01

spotify:
    source_weight: 0.02

deezer:
    source_weight: 0.03


ftintitle:
    auto: yes
    
embedart:
    remove_art_file: yes

follow:
    email: 1234
    password: 1234
    userid: 1234

Hi there, and welcome to the forum.

For all bugs, we prefer users open an issue on github. We also advise you to search any existing issues to see if someone has run into the same problem before.

Ok thanks I posted a thing here https://github.com/beetbox/beets/issues/3664

1 Like