Package: toolong
Version: 1.4.0-1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: [email protected]
Dear Maintainer,
tl fails on running with the following feedback:
# tl /var/log/syslog
/usr/lib/python3/dist-packages/textual/message_pump.py:639: 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/dist-packages/toolong/log_view.py:243 in watch_can_tail
│
│
│
│ 240 │ │ self.query(".tail").set_class(tail and self.can_tail, "on")
╭──────── locals ────────╮ │
│ 241 │
│ can_tail = False │ │
│ 242 │ async def watch_can_tail(self, can_tail: bool) -> None:
│ self = LogFooter() │ │
│ ❱ 243 │ │ await self.mount_keys()
╰────────────────────────╯ │
│ 244 │
│
│ 245 │ def watch_filename(self, filename: str) -> None:
│
│ 246 │ │ self.update_meta()
│
│
│
│ /usr/lib/python3/dist-packages/toolong/log_view.py:205 in mount_keys
│
│
│
│ 202 │ │ │ │ await key_container.query("*").remove()
╭─────────── locals ───────────╮ │
│ 203 │ │ │ │ bindings = [
│ key_container = Horizontal() │ │
│ 204 │ │ │ │ │ binding
│ self = LogFooter() │ │
│ ❱ 205 │ │ │ │ │ for (_, binding) in
self.app.namespace_bindings.values()
╰──────────────────────────────╯ │
│ 206 │ │ │ │ │ if binding.show
│
│ 207 │ │ │ │ ]
│
│ 208
│
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
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
tl is able to run without error when reporting its version:
# tl --version
tl, version 1.4.0
and displaying help:
# tl --help
Usage: tl [OPTIONS] FILE1 FILE2
View / tail / search log files.
Options:
--version Show the version and exit.
-m, --merge Merge files.
-o, --output-merge PATH Path to save merged file (requires -m).
--help Show this message and exit.
It only fails when given a file to process.
If tl is installed using pipx:
pipx install toolong
the installed version runs without error. The version installed by pipx
is 1.5.0.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (995, 'testing'), (750, 'stable'), (500, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.18.9+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages toolong depends on:
ii python3 3.13.9-3
ii python3-click 8.2.0+0.really.8.1.8-1
pn python3-textual <none>
ii python3-typing-extensions 4.15.0-2
toolong recommends no packages.
toolong suggests no packages.