Bug 2190457 - FetchArt plugin errors out
Summary: FetchArt plugin errors out
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: beets
Version: 38
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michele Baldessari
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-28 13:17 UTC by Fabio Alessandro Locati
Modified: 2024-05-21 14:47 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-21 14:47:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabio Alessandro Locati 2023-04-28 13:17:50 UTC
When the FetchArt plugin is enabled with

```
plugins: fetchart
art_filename: cover.jpg
```

in the config file, beets crushes with the following error: AttributeError: module 'confuse' has no attribute 'Optional'

Reproducible: Always

Steps to Reproduce:
1. Ensble fetchart plugin with
```
plugins: fetchart
art_filename: cover.jpg
```

2. run beets (with beet fetchart)
Actual Results:  
[fale@mbs0 ~]$ beet fetchart
Traceback (most recent call last):
  File "/usr/bin/beet", line 33, in <module>
    sys.exit(load_entry_point('beets==1.6.0', 'console_scripts', 'beet')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/beets/ui/__init__.py", line 1285, in main
    _raw_main(args)
  File "/usr/lib/python3.11/site-packages/beets/ui/__init__.py", line 1268, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
                                ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/beets/ui/__init__.py", line 1148, in _setup
    plugin_types_album = plugins.types(library.Album)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/beets/plugins.py", line 337, in types
    for plugin in find_plugins():
                  ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/beets/plugins.py", line 307, in find_plugins
    _instances[cls] = cls()
                      ^^^^^
  File "/usr/lib/python3.11/site-packages/beetsplug/fetchart.py", line 984, in __init__
    confuse.Optional(str)
    ^^^^^^^^^^^^^^^^
AttributeError: module 'confuse' has no attribute 'Optional'
[fale@mbs0 ~]$ 

Expected Results:  
Beets not crushing

Comment 1 wisp3rwind 2023-04-29 08:42:16 UTC
The actual issue here is that the `python3-confuse` package is very outdated, cf. https://github.com/beetbox/confuse/tags

Comment 2 Aoife Moloney 2024-05-07 16:13:46 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2024-05-21 14:47:55 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.