Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toot tui crashes with "'NoneType' object has no attribute 'bottom_w'" #467

Open
nevillepark opened this issue Jan 18, 2024 · 0 comments
Open

Comments

@nevillepark
Copy link

Version: v0.41.1, installed through pip3 (v. 23.3.2, python 3.10)
OS: elementary OS 7.1 (based on Ubuntu 22.04 LTS)

toot tui has been crashing - most recently when I tried to open my personal timeline. I entered g, then selected "Personal timeline". Nothing happened (no loading message), so I pressed Enter again. It then crashed with this output:

Traceback (most recent call last):
  File "/home/nev/.local/bin/toot", line 8, in <module>
    sys.exit(cli())
  File "/home/nev/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/nev/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/nev/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/nev/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/nev/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/nev/.local/lib/python3.10/site-packages/toot/cli/__init__.py", line 124, in wrapped
    return f(get_context(), *args, **kwargs)
  File "/home/nev/.local/lib/python3.10/site-packages/toot/cli/tui.py", line 51, in tui
    tui.run()
  File "/home/nev/.local/lib/python3.10/site-packages/toot/tui/app.py", line 154, in run
    self.loop.run()
  File "/home/nev/.local/lib/python3.10/site-packages/urwid/event_loop/main_loop.py", line 323, in run
    self._run()
  File "/home/nev/.local/lib/python3.10/site-packages/urwid/event_loop/main_loop.py", line 423, in _run
    self.event_loop.run()
  File "/home/nev/.local/lib/python3.10/site-packages/urwid/event_loop/asyncio_loop.py", line 190, in run
    raise exc.with_traceback(exc.__traceback__)
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/nev/.local/lib/python3.10/site-packages/toot/tui/app.py", line 545, in <lambda>
    promise.add_done_callback(lambda *args: self.close_overlay())
  File "/home/nev/.local/lib/python3.10/site-packages/toot/tui/app.py", line 785, in close_overlay
    self.body = self.overlay.bottom_w
AttributeError: 'NoneType' object has no attribute 'bottom_w'

This happens both in Elementary's default terminal emulator and in the virtual console (e. g. /dev/tty1).

Let me know if you need any more information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant