google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

Traceback when fingerprinting a track #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Beets config:
[beets]
directory: /cygdrive/e/Music/
library: /cygdrive/e/Music/library.blb
plugins: info embedart chroma
import_copy: yes
import_write: yes
import_resume: ask
import_art: yes
import_quiet_fallback: skip
import_log: /cygdrive/e/Music/import.log
art_filename: folder
threaded: no
color: yes

[paths]
default: Albums/$genre/$albumartist/$album/$track - $artist - $title
comp: Compilations/$genre/$albumartist/$album/$track - $artist - $title
singleton: Non-Album/$genre/$artist - $title
ep: EP/$genre/$albumartist/$album/$track - $artist - $title
single: EP/$genre/$albumartist/$album/$track - $artist - $title
soundtrack: Soundtrack/$album/$track - $artist - $title
live: Soundtrack/$album/$track - $artist - $title

Command + output:

$ beet -v imp Album/2002\ -\ Dedicated\ \(Kontor210\)/
Looking up: /cygdrive/e/Downloads/ATB/Album/2002 - Dedicated (Kontor210)/CD1
Tagging ATB - Dedicated
No album IDs found.
Search terms: ATB - Dedicated
Album might be VA: False
AttributeError: 'module' object has no attribute 'Element'
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/01 - Dedicated.flac'
DEBUG:beets:fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/01 - Dedicated.flac'
fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/02 - Hold You.flac'
DEBUG:beets:fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/02 - Hold You.flac'
fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/03 - Get High.flac'
DEBUG:beets:fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/03 - Get High.flac'
fingerprinted: "/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/04 - You're Not Alone.flac"
DEBUG:beets:fingerprinted: "/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/04 - You're Not Alone.flac"
fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/05 - Halcyon.flac'
DEBUG:beets:fingerprinted: '/cygdrive/e/Downloads/ATB/Album/2002 - Dedicated 
(Kontor210)/CD1/05 - Halcyon.flac'
Traceback (most recent call last):
  File "/usr/bin/beet", line 9, in <module>
    load_entry_point('beets==1.0b11', 'console_scripts', 'beet')()
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/ui/__init__.py", line 627, in main
    subcommand.func(lib, config, suboptions, subargs)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/ui/commands.py", line 673, in import_func
    timid, query, incremental, ignore)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/ui/commands.py", line 572, in import_files
    ignore = ignore,
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/importer.py", line 808, in run_import
    pl.run_sequential()
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/util/pipeline.py", line 329, in run_sequential
    out = coro.send(msg)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/importer.py", line 519, in initial_lookup
    task.set_match(*autotag.tag_album(task.items, config.timid))
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/autotag/match.py", line 431, in tag_album
    va_likely)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/autotag/hooks.py", line 108, in _album_candidates
    out.extend(plugins.candidates(items))
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beets/plugins.py", line 182, in candidates
    out.extend(plugin.candidates(items))
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beetsplug/chroma.py", line 107, in candidates
    for relid in _all_releases(items):
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beetsplug/chroma.py", line 80, in _all_releases
    aidata = acoustid_match(item.path)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beetsplug/chroma.py", line 42, in __call__
    res = self.func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/beets-1.0b11-py2.6.egg/beetsplug/chroma.py", line 69, in acoustid_match
    release_ids = [rel['id'] for rel in recording['releases']]
KeyError: 'releases'

Original issue reported on code.google.com by jvandertil on 18 Nov 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Thanks; the Acoustid response parser needs to check whether the releases are 
missing.

Original comment by adrian.sampson on 18 Nov 2011 at 4:35

GoogleCodeExporter commented 9 years ago
I'm hacking away for a fix on this, but looks like a big rewrite of the plugin. 
Will push it to my clone when I'm done with it.

Original comment by jvandertil on 20 Nov 2011 at 12:39

GoogleCodeExporter commented 9 years ago
Fixed this in revision 4fc4eca66691 on my clone (jvandertil-beets-patches)

Original comment by jvandertil on 20 Nov 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Slightly tweaked fix committed as 11c158afe556.

Original comment by adrian.sampson on 20 Nov 2011 at 1:56