Skip to content

Bauh fails to list Flatpaks #374

Open
@UriHerrera

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions