Package: toot
Version: 0.51.0-1
Severity: normal
After upgrading to recent Unstable I get the following error, it seems that
now the package should depend on python3-term-image. I don't know if it's
dependencies worked for prevoious versions of Python packages or if something
unrelated had depended on that package.
$ toot
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/toot/tui/images.py", line 8, in <module>
from term_image.widget import UrwidImageScreen, UrwidImage
ModuleNotFoundError: No module named 'term_image'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/toot", line 5, in <module>
from toot.cli import cli
File "/usr/lib/python3/dist-packages/toot/cli/__init__.py", line 199, in
<module>
from toot.cli import tui # noqa
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/toot/cli/tui.py", line 6, in <module>
from toot.tui.app import TUI, TuiOptions
File "/usr/lib/python3/dist-packages/toot/tui/app.py", line 18, in <module>
from .images import TuiScreen, load_image
File "/usr/lib/python3/dist-packages/toot/tui/images.py", line 97, in <module>
from urwid.raw_display import Screen
ModuleNotFoundError: No module named 'urwid.raw_display'
Also when the new python3-term-image is installed I get the following error
when running it from a script:
```
/usr/lib/python3/dist-packages/term_image/utils.py:749: TermImageWarning: It
seems this process is not running within a terminal. Hence, some features will
behave differently or be disabled.
See
https://term-image.readthedocs.io/en/stable/guide/concepts.html#active-terminal
Any filter for this warning must be set before loading `term_image`, using
`UserWarning` with the warning message (since `TermImageWarning` won't be
available).
warnings.warn(
Toot posted: https://mastodon.nzoss.nz/@flounder/116027712912008461
```
What I expected it to do is to just see that it doesn't need terminal access
and read from stdin without error. In this case it worked correctly and
produced the desired toot, just gave an annoying and confusing message along
the way.
-- System Information:
Debian Release: forky/sid
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.13+deb14-amd64 (SMP w/44 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: unable to detect
Versions of packages toot depends on:
ii python3 3.13.9-3
ii python3-bs4 4.14.3-2
ii python3-click 8.2.0+0.really.8.1.8-1
ii python3-dateutil 2.9.0-4
ii python3-requests 2.32.5+dfsg-1
ii python3-tomlkit 0.13.3-2
ii python3-urwid 3.0.4-1
ii python3-wcwidth 0.2.14+dfsg1-1
Versions of packages toot recommends:
ii python3-pil 12.1.0-1
toot suggests no packages.
-- debconf-show failed