Skip to content

Beet Import Crash: AttributeError #6558

Description

@scottia

Problem: 2.10.0 regression from 2.9.0 — import crash (TrackInfo.raw_data missing)

Running this command in verbose (-v) mode:

$ beet -v import -I "/<path>/<album>"

Leads to the following crash:

Sending event: import_task_choice
Traceback (most recent call last):
  File "/lsiopy/bin/beet", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  ...
  File "/lsiopy/lib/python3.12/site-packages/beets/autotag/hooks.py", line 492, in merge_with_album
    raw_track = self.raw_data
                ^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/beets/autotag/hooks.py", line 123, in __getattr__
    raise AttributeError(
AttributeError: 'TrackInfo' object has no attribute 'raw_data'

The album is successfully matched (100% / Distance: 0.00) before the crash, so the failure occurs during metadata application after selecting the match.

Setup

  • OS: Docker (Linux)
  • Python version: 3.12.13
  • beets version: 2.10.0
  • Turning off plugins made problem go away (yes/no): not tested

My configuration (output of beet config) is:

# (omitted for brevity — can provide if needed)

Notes

  • This workflow worked on 2.9.0.
  • The failure occurs during apply_metadata()merge_with_album().
  • Workaround: tagging externally (e.g. Picard) and using beet import -A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions