Skip to content

[BUG] not running after installing from AURย #231

@prateekamana

Description

@prateekamana

Describe the bug ๐Ÿ›
I ran yay -S dooit and it throws an error when I try to run dooit

๐Ÿ’š~ dooit 
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /usr/lib/python3.13/site-packages/dooit/ui/widgets/trees/model_tree.py โ”‚
โ”‚ :158 in on_mount                                                       โ”‚
โ”‚                                                                        โ”‚
โ”‚   155 โ”‚   โ”‚   self.refresh_options()                                   โ”‚
โ”‚   156 โ”‚                                                                โ”‚
โ”‚   157 โ”‚   def on_mount(self):                                          โ”‚
โ”‚ โฑ 158 โ”‚   โ”‚   self.force_refresh()                                     โ”‚
โ”‚   159 โ”‚                                                                โ”‚
โ”‚   160 โ”‚   @require_highlighted_node                                    โ”‚
โ”‚   161 โ”‚   def start_sort(self):                                        โ”‚
โ”‚                                                                        โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ          โ”‚
โ”‚ โ”‚ self = WorkspacesTree(id='WorkspacesTree_Workspace_None') โ”‚          โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ          โ”‚
โ”‚                                                                        โ”‚
โ”‚ /usr/lib/python3.13/site-packages/dooit/ui/widgets/trees/_decorators.p โ”‚
โ”‚ y:17 in wrapper                                                        โ”‚
โ”‚                                                                        โ”‚
โ”‚   14 โ”‚   โ”‚   highlighted_id = self.node.id if self.highlighted is not  โ”‚
โ”‚   15 โ”‚   โ”‚   highlighted_index = self.highlighted                      โ”‚
โ”‚   16 โ”‚   โ”‚                                                             โ”‚
โ”‚ โฑ 17 โ”‚   โ”‚   func(self, *args, **kwargs)                               โ”‚
โ”‚   18 โ”‚   โ”‚                                                             โ”‚
โ”‚   19 โ”‚   โ”‚   try:                                                      โ”‚
โ”‚   20 โ”‚   โ”‚   โ”‚   if highlighted_id is None:                            โ”‚
โ”‚                                                                        โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚              args = ()                                             โ”‚ โ”‚
โ”‚ โ”‚    highlighted_id = None                                           โ”‚ โ”‚
โ”‚ โ”‚ highlighted_index = None                                           โ”‚ โ”‚
โ”‚ โ”‚            kwargs = {}                                             โ”‚ โ”‚
โ”‚ โ”‚              self = WorkspacesTree(                                โ”‚ โ”‚
โ”‚ โ”‚                     โ”‚   id='WorkspacesTree_Workspace_None'         โ”‚ โ”‚
โ”‚ โ”‚                     )                                              โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚                                                                        โ”‚
โ”‚ /usr/lib/python3.13/site-packages/dooit/ui/widgets/trees/model_tree.py โ”‚
โ”‚ :129 in force_refresh                                                  โ”‚
โ”‚                                                                        โ”‚
โ”‚   126 โ”‚                                                                โ”‚
โ”‚   127 โ”‚   @fix_highlight                                               โ”‚
โ”‚   128 โ”‚   def force_refresh(self) -> None:                             โ”‚
โ”‚ โฑ 129 โ”‚   โ”‚   self._force_refresh()                                    โ”‚
โ”‚   130 โ”‚   โ”‚   self.get_column_width.cache_clear()                      โ”‚
โ”‚   131 โ”‚                                                                โ”‚
โ”‚   132 โ”‚   def _force_refresh(self) -> None:                            โ”‚
โ”‚                                                                        โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ          โ”‚
โ”‚ โ”‚ self = WorkspacesTree(id='WorkspacesTree_Workspace_None') โ”‚          โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ          โ”‚
โ”‚                                                                        โ”‚
โ”‚ /usr/lib/python3.13/site-packages/dooit/ui/widgets/trees/model_tree.py โ”‚
โ”‚ :155 in _force_refresh                                                 โ”‚
โ”‚                                                                        โ”‚
โ”‚   152 โ”‚   โ”‚                                                            โ”‚
โ”‚   153 โ”‚   โ”‚   has_options = bool(options)                              โ”‚
โ”‚   154 โ”‚   โ”‚   self.empty_message.display = not has_options             โ”‚
โ”‚ โฑ 155 โ”‚   โ”‚   self.refresh_options()                                   โ”‚
โ”‚   156 โ”‚                                                                โ”‚
โ”‚   157 โ”‚   def on_mount(self):                                          โ”‚
โ”‚   158 โ”‚   โ”‚   self.force_refresh()                                     โ”‚
โ”‚                                                                        โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ   โ”‚
โ”‚ โ”‚ has_options = False                                              โ”‚   โ”‚
โ”‚ โ”‚ highlighted = None                                               โ”‚   โ”‚
โ”‚ โ”‚     options = []                                                 โ”‚   โ”‚
โ”‚ โ”‚        self = WorkspacesTree(id='WorkspacesTree_Workspace_None') โ”‚   โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ   โ”‚
โ”‚                                                                        โ”‚
โ”‚ /usr/lib/python3.13/site-packages/dooit/ui/widgets/trees/model_tree.py โ”‚
โ”‚ :224 in refresh_options                                                โ”‚
โ”‚                                                                        โ”‚
โ”‚   221 โ”‚   โ”‚   โ”‚   if i.prompt != new_prompt:                           โ”‚
โ”‚   222 โ”‚   โ”‚   โ”‚   โ”‚   i.set_prompt(self._renderers[i.id].prompt)       โ”‚
โ”‚   223 โ”‚   โ”‚                                                            โ”‚
โ”‚ โฑ 224 โ”‚   โ”‚   self._refresh_lines()                                    โ”‚
โ”‚   225 โ”‚                                                                โ”‚
โ”‚   226 โ”‚   def _get_parent(self, id: str) -> Optional[ModelType]:       โ”‚
โ”‚   227 โ”‚   โ”‚   raise NotImplementedError  # pragma: no cover            โ”‚
โ”‚                                                                        โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ          โ”‚
โ”‚ โ”‚ self = WorkspacesTree(id='WorkspacesTree_Workspace_None') โ”‚          โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ          โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
AttributeError: 'WorkspacesTree' object has no attribute '_refresh_lines'

NOTE: 1 of 2 errors shown. Run with textual run --dev to see all errors.

To Reproduce ๐Ÿฃ
Steps to reproduce the behavior:

  1. Install using yayy
  2. Doesn't run

Expected behavior ๐Ÿค”
Shouldn't show error

Screenshots ๐Ÿง

Image

Desktop (please complete the following information): ๐Ÿค–
CopyOS: EndeavourOS Linux x86_64
Host: 82JQ Legion 5 Pro 16ACH6H
Kernel: 6.13.8-arch1-1
Uptime: 1 hour, 11 mins
Packages: 1095 (pacman)
Shell: bash 5.2.37
Resolution: 2560x1600
DE: Hyprland
Theme: FlatColor [GTK2/3]
Icons: flattrcolor [GTK2/3]
Terminal: kitty
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.2016GHz
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
Memory: 6244MiB / 15836MiB

Additional context ๐Ÿ“
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions