vinifmor / bauh

Graphical user interface for managing your Linux applications. Supports AppImage, Debian and Arch packages (including AUR), Flatpak, Snap and native Web applications
zlib License
987 stars 70 forks source link

Bauh fails to list Flatpaks #374

Open UriHerrera opened 1 week ago

UriHerrera commented 1 week ago

Describe the bug

Bauh no longer lists any Flatpak, whether installed or not.

Software Environment bauh version: 0.10.7 - AppImage O.S: Nitrux 3.7.0 Python version: 3.12

Here's the output from the terminal.

Exception in thread Thread-6:
Traceback (most recent call last):
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/view/core/controller.py", line 206, in _fill_read_installed
    man_res = man.read_installed(disk_loader=disk_loader, pkg_types=None, internet_available=internet_available,
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/gems/flatpak/controller.py", line 162, in read_installed
    installed = flatpak.list_installed(version)
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/gems/flatpak/flatpak.py", line 129, in list_installed
    runtime = 'runtime' in data[6]
IndexError: list index out of range
Exception in thread Thread-17:
Traceback (most recent call last):
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/view/core/controller.py", line 495, in _fill_suggestions
    man_sugs = man.list_suggestions(limit=limit, filter_installed=filter_installed)
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/gems/flatpak/controller.py", line 642, in list_suggestions
    installed = {i.id for i in self.read_installed(disk_loader=None).installed}
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/gems/flatpak/controller.py", line 162, in read_installed
    installed = flatpak.list_installed(version)
  File "/tmp/.mount_bauh-0U152ZH/usr/lib/python3.9/site-packages/bauh/gems/flatpak/flatpak.py", line 129, in list_installed
    runtime = 'runtime' in data[6]
IndexError: list index out of range
PandusMaximus commented 6 days ago

Having the same issue with Arch using the appimage or the AUR build. Cant see installed flatpaks whether its set to User or System.

BlastboomStrice commented 4 days ago

Same issue appeared on: bauh version: 0.10.7 - bauh-0.10.7-x86_64.AppImage OS: Debian testing (Trixie) Python version: 3.12.6-1 amd64

I could install and see flatpaks until a few hours ago, somehow now it's gone, hmm.

UriHerrera commented 2 days ago

I downloaded the AppImage again, and everything works now (?)

It seems the problem was with how Bauh reads Flatpak's output, and the length of this output caused an issue. If that's the case, then it means that at any point, this issue will occur again.

imagen

No errors when running the AppImage