google-code-export / beets

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

Importer crashes on files having no id3 tags set #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
`beet import -C my_album` 
crashed with the stack trace given below.

I opened mp3 files in iTunes to see that none of the id3 tags were set. I 
filled artist and album names, then rerun the command, and it succeeded.

--
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 8, in <module>
    load_entry_point('beets==1.0b10', 'console_scripts', 'beet')()
  File "/Users/flap/Dev/src/beets/beets/ui/__init__.py", line 744, in main
    subcommand.func(lib, config, suboptions, subargs)
  File "/Users/flap/Dev/src/beets/beets/ui/commands.py", line 799, in import_func
    timid, query, incremental, ignore)
  File "/Users/flap/Dev/src/beets/beets/ui/commands.py", line 688, in import_files
    resolve_duplicate_func = resolve_duplicate,
  File "/Users/flap/Dev/src/beets/beets/importer.py", line 933, in run_import
    pl.run_parallel(QUEUE_SIZE)
  File "/Users/flap/Dev/src/beets/beets/util/pipeline.py", line 242, in run
    out = self.coro.send(msg)
  File "/Users/flap/Dev/src/beets/beets/importer.py", line 604, in user_query
    choice = config.choose_match_func(task, config)
  File "/Users/flap/Dev/src/beets/beets/ui/commands.py", line 512, in choose_match
    task.cur_album, itemcount=len(task.items))
  File "/Users/flap/Dev/src/beets/beets/ui/commands.py", line 318, in choose_candidate
    .format(itemcount))
ValueError: zero length field name in format
--

Original issue reported on code.google.com by kray...@gmail.com on 8 May 2012 at 2:07

GoogleCodeExporter commented 9 years ago
Thanks. I was using a shorthand syntax that only worked in Python 2.7 or later 
(looks like you're running 2.6). Changeset 9268c0fb29aa should be 
2.6-compatible again. Can you see if this problem still exists after updating 
to the latest source?

Original comment by adrian.sampson on 8 May 2012 at 7:05

GoogleCodeExporter commented 9 years ago
I confirm that I m using Python 2.6.

Original comment by kray...@gmail.com on 8 May 2012 at 7:09