Skip to content

fish plugin fails with AttributeError: module 'beets.ui.commands' has no attribute 'plugins' #6340

@stefanvanburen

Description

@stefanvanburen

Problem

Running this command in verbose (-vv) mode:

$ beet -vv fish

Led to this problem:

Sending event: library_opened
Traceback (most recent call last):
  File "/Users/svbn/.local/bin/beet", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/svbn/.local/share/uv/tools/beets/lib/python3.14/site-packages/beets/ui/__init__.py", line 1645, in main
    _raw_main(args)
    ~~~~~~~~~^^^^^^
  File "/Users/svbn/.local/share/uv/tools/beets/lib/python3.14/site-packages/beets/ui/__init__.py", line 1624, in _raw_main
    subcommand.func(lib, suboptions, subargs)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/svbn/.local/share/uv/tools/beets/lib/python3.14/site-packages/beetsplug/fish.py", line 114, in run
    (commands.default_commands + commands.plugins.commands()),
                                 ^^^^^^^^^^^^^^^^
  File "/Users/svbn/.local/share/uv/tools/beets/lib/python3.14/site-packages/beets/ui/commands/__init__.py", line 38, in __getattr__
    return deprecate_imports(
        __name__,
    ...<4 lines>...
        name,
    )
  File "/Users/svbn/.local/share/uv/tools/beets/lib/python3.14/site-packages/beets/util/deprecation.py", line 60, in deprecate_imports
    raise AttributeError(f"module '{old_module}' has no attribute '{name}'")
AttributeError: module 'beets.ui.commands' has no attribute 'plugins'

Here's a link to the music files that trigger the bug (if relevant):

Setup

  • OS: macOS
  • Python version: 3.14
  • beets version: 2.6.1
  • Turning off plugins made problem go away (yes/no): n/a; related to a plugin

My configuration (output of beet config) is:

# --------------- Plugins ---------------

plugins: embedart fetchart fish info musicbrainz

Happy to provide more context, but I think this is trivially reproducible just running the fish plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions