Skip to content

/usr/lib/python3.13/site-packages/textual/message_pump.py:678: RuntimeWarning: coroutine 'LogFooter.mount_keys' was never awaited await self._flush_next_callbacks() #74

@iconoclasthero

Description

@iconoclasthero

I just installed Manjaro this week coming from better than a decade of Ubuntu so I'm still getting used to AUR. As such, I tried to install toolong with paruz -S like I've been doing. (paruz is an fzf front end for paru which is, in turn, an AUR/Pacman front end.)

Anyway, I got the following error which I'd like to say something about on the toolong AUR page, problem is, I don't know what I should say... The AUR tl --version did say it was v 1.5.0 but then the error below. I installed with pipx and it worked fine with /var/log/mpd/mpd.log so ... thoughts?

$ tl mpd.log
/usr/lib/python3.13/site-packages/textual/message_pump.py:678: RuntimeWarning: coroutine 'LogFooter.mount_keys' was never awaited
  await self._flush_next_callbacks()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
╭────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────╮
│ /usr/lib/python3.13/site-packages/toolong/log_view.py:244 in watch_can_tail                            │
│                                                                                                        │
│   241 │   │   self.query(".tail").set_class(tail and self.can_tail, "on")                              │
│   242 │                                                                                                │
│   243 │   async def watch_can_tail(self, can_tail: bool) -> None:                                      │
│ ❱ 244 │   │   await self.mount_keys()                                                                  │
│   245 │                                                                                                │
│   246 │   def watch_filename(self, filename: str) -> None:                                             │
│   247 │   │   self.update_meta()                                                                       │
│                                                                                                        │
│ ╭──────── locals ────────╮                                                                             │
│ │ can_tail = False       │                                                                             │
│ │     self = LogFooter() │                                                                             │
│ ╰────────────────────────╯                                                                             │
│                                                                                                        │
│ /usr/lib/python3.13/site-packages/toolong/log_view.py:206 in mount_keys                                │
│                                                                                                        │
│   203 │   │   │   │   await key_container.query("*").remove()                                          │
│   204 │   │   │   │   bindings = [                                                                     │
│   205 │   │   │   │   │   binding                                                                      │
│ ❱ 206 │   │   │   │   │   for (_, binding) in self.app.namespace_bindings.values()                     │
│   207 │   │   │   │   │   if binding.show                                                              │
│   208 │   │   │   │   ]                                                                                │
│   209                                                                                                  │
│                                                                                                        │
│ ╭────────────────────── locals ───────────────────────╮                                                │
│ │ key_container = Horizontal(classes='key-container') │                                                │
│ │          self = LogFooter()                         │                                                │
│ ╰─────────────────────────────────────────────────────╯                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'UI' object has no attribute 'namespace_bindings'

NOTE: 1 of 3 errors shown. Run with textual run --dev to see all errors.
<sys>:0: RuntimeWarning: coroutine 'LogFooter.watch_can_tail' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions