beetcamp icon indicating copy to clipboard operation
beetcamp copied to clipboard

Attribute Error, fedora 41

Open cccslater opened this issue 10 months ago • 2 comments

Fedora 41 beets version 1.6.1 Python version 3.13.2 beetcamp version ? (installed with pip)

Hi,

When I run beet import ~/Music, beetcamp plugin crashes after 1 import:

> beet import ~/Music
Import of the directory:
/home/cts/Music
was interrupted. Resume (Y/n)? y
Resuming interrupted import of /home/cts/Music

/home/cts/Music/Dance 6/Dance 6 (2 items)

  Match (100.0%):
  Dance 6 - Dance 6
  bandcamp, Digital Media, 1997, DE, Studio 45 / BCC Music, , None
  https://studio45.bandcamp.com/album/dance-6
  * Artist: Dance 6
  * Album: Dance 6
Traceback (most recent call last):
  File "/usr/bin/beet", line 33, in <module>
    sys.exit(load_entry_point('beets==1.6.1', 'console_scripts', 'beet')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/beets/ui/__init__.py", line 1865, in main
    _raw_main(args)
    ~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/ui/__init__.py", line 1852, in _raw_main
    subcommand.func(lib, suboptions, subargs)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/ui/commands.py", line 1395, in import_func
    import_files(lib, paths, query)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/ui/commands.py", line 1326, in import_files
    session.run()
    ~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/beets/importer.py", line 360, in run
    pl.run_parallel(QUEUE_SIZE)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/util/pipeline.py", line 447, in run_parallel
    raise exc_info[1].with_traceback(exc_info[2])
  File "/usr/lib/python3.13/site-packages/beets/util/pipeline.py", line 312, in run
    out = self.coro.send(msg)
  File "/usr/lib/python3.13/site-packages/beets/util/pipeline.py", line 171, in coro
    task = func(*(args + (task,)))
  File "/usr/lib/python3.13/site-packages/beets/importer.py", line 1568, in user_query
    apply_choice(session, task)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/importer.py", line 1638, in apply_choice
    task.apply_metadata()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/beets/importer.py", line 582, in apply_metadata
    autotag.apply_metadata(self.match.info, self.match.mapping)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/autotag/__init__.py", line 134, in apply_metadata
    item.artists = track_info.artists or album_info.artists
                   ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/beets/autotag/hooks.py", line 56, in __getattr__
    raise AttributeError
AttributeError

Let me know what other info you need :-)

cccslater avatar Apr 19 '25 13:04 cccslater

Could you check beetcamp version please? Try running pip list

snejus avatar Apr 19 '25 13:04 snejus

0.21.0 👍

cccslater avatar Apr 19 '25 13:04 cccslater

Sorry for a late answer, but it seems to me that your issue should get fixed by upgrading beets. Let me know if this works

snejus avatar May 03 '25 02:05 snejus

Didn't notice the fedora package is so out of date! I'll have to try on my Nix laptop :-) Will close for now and reopen if still an issue.

cccslater avatar May 03 '25 14:05 cccslater

Strangely I do in fact have beets 2.0.0 from Fedora but beet version tells me 1.6.1 -- something fishy is going on

cccslater avatar May 03 '25 15:05 cccslater

I remember we had issues with versioning that release. Best if you update to the most recent version, 2.2.0!

snejus avatar May 05 '25 16:05 snejus