You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a rather large import, after selecting a specific (to skip), beets just fails with a KeyError. From the stacktrace, it seems it comes from the fromfilename plugin:
$ beet -vv import
user configuration: /home/pi/.config/beets/config.yaml
data directory: /home/pi/.config/beets
plugin paths:
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
Sending event: pluginload
library database: /home/pi/.beets/musiclibrary.db
library directory: /media/audio
Sending event: library_opened
Sending event: import_begin
ignoring b'.mediaartlocal' due to ignore rule b'.*'
ignoring b'.DS_Store' due to ignore rule b'.*'
[...]
Sending event: import_task_created
Sending event: import_task_choice
Traceback (most recent call last):
File "/home/pi/.local/bin/beet", line 8, in<module>sys.exit(main())
File "/home/pi/.local/lib/python3.10/site-packages/beets/ui/__init__.py", line 1865, in main
_raw_main(args)
File "/home/pi/.local/lib/python3.10/site-packages/beets/ui/__init__.py", line 1852, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/home/pi/.local/lib/python3.10/site-packages/beets/ui/commands.py", line 1395, in import_func
import_files(lib, paths, query)
File "/home/pi/.local/lib/python3.10/site-packages/beets/ui/commands.py", line 1326, in import_files
session.run()
File "/home/pi/.local/lib/python3.10/site-packages/beets/importer.py", line 360, in run
pl.run_parallel(QUEUE_SIZE)
File "/home/pi/.local/lib/python3.10/site-packages/beets/util/pipeline.py", line 447, in run_parallel
raise exc_info[1].with_traceback(exc_info[2])
File "/home/pi/.local/lib/python3.10/site-packages/beets/util/pipeline.py", line 312, in run
out = self.coro.send(msg)
File "/home/pi/.local/lib/python3.10/site-packages/beets/util/pipeline.py", line 195, in coro
func(*(args + (task,)))
File "/home/pi/.local/lib/python3.10/site-packages/beets/importer.py", line 1490, in lookup_candidates
plugins.send("import_task_start", session=session, task=task)
File "/home/pi/.local/lib/python3.10/site-packages/beets/plugins.py", line 507, in send
result = handler(**arguments)
File "/home/pi/.local/lib/python3.10/site-packages/beets/plugins.py", line 143, in wrapper
return func(*args, **kwargs)
File "/home/pi/.local/lib/python3.10/site-packages/beetsplug/fromfilename.py", line 165, in filename_task
apply_matches(d, self._log)
File "/home/pi/.local/lib/python3.10/site-packages/beetsplug/fromfilename.py", line 124, in apply_matches
item.title = str(d[item][title_field])
KeyError: 'title'
Here's a link to the music files that trigger the bug (if relevant):
Setup
OS: raspberry pi OS
Python version: 3.10
beets version: 2.0
Turning off plugins made problem go away (yes/no): yes
Problem
During a rather large import, after selecting a specific (to skip), beets just fails with a
KeyError
. From the stacktrace, it seems it comes from thefromfilename
plugin:Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is:https://github.com/beetbox/beets/blob/master/beetsplug/fromfilename.py#L124 offending line
Unfortunately, I cannot pinpoint the offending MP3 file (neither from the logs nor from the progress during the import).
The text was updated successfully, but these errors were encountered: