SeaDve / Mousai

Identify songs in seconds
GNU General Public License v3.0
981 stars 36 forks source link

AttributeError: 'Avatar' object has no attribute 'set_image_load_func' #17

Closed dotlambda closed 3 years ago

dotlambda commented 3 years ago

After updating to libadwaita 1.0.0-alpha.1, I get

Traceback (most recent call last):
  File "/nix/store/sy59jxn8ss9b913vz9pfp9r5r55hlzrp-mousai-0.4.1/share/mousai/mousai/main.py", line 60, in do_activate
    win = MainWindow(self.settings, application=self)
  File "/nix/store/sy59jxn8ss9b913vz9pfp9r5r55hlzrp-mousai-0.4.1/share/mousai/mousai/widgets/main_window.py", line 52, in __init__
    self.load_memory_list()
  File "/nix/store/sy59jxn8ss9b913vz9pfp9r5r55hlzrp-mousai-0.4.1/share/mousai/mousai/widgets/main_window.py", line 84, in load_memory_list
    self.new_song_row(song.values())
  File "/nix/store/sy59jxn8ss9b913vz9pfp9r5r55hlzrp-mousai-0.4.1/share/mousai/mousai/widgets/main_window.py", line 64, in new_song_row
    song_row = SongRow(*song)
  File "/nix/store/sy59jxn8ss9b913vz9pfp9r5r55hlzrp-mousai-0.4.1/share/mousai/mousai/widgets/song_row.py", line 40, in __init__
    self.song_icon.set_image_load_func(self.load_song_icon)
AttributeError: 'Avatar' object has no attribute 'set_image_load_func'

when running mousai.

SeaDve commented 3 years ago

I assume you installed it from the AUR. I think this is a packaging issue.

Edit: I was able to reproduce it on libadwaita master

This seems to be the breaking commit https://gitlab.gnome.org/GNOME/libadwaita/-/commit/bf88f00a796fd2ca24722f7a60280ed9e7a50bbe

SeaDve commented 3 years ago

For now, I recommended downgrading or using flatpak version

Edit: Nvm, I was able to fix it, try it with the latest commits from Mousai main, and feel free to reopen if it still exist, thnx

dotlambda commented 3 years ago

Thanks a lot!