Package: lookatme
Version: 2.3.0-1
Severity: important
X-Debbugs-Cc: deb...@rocketjump.eu

Hi, it's trivally to trigger a traceback with lookatme:

-----------------------------------------------------------------------
$ lookatme README.md 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lookatme/__main__.py", line 139, in main
    pres.run()
  File "/usr/lib/python3/dist-packages/lookatme/pres.py", line 141, in run
    self.tui = lookatme.tui.create_tui(self, start_slide=start_slide)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 364, in create_tui
    tui = MarkdownTui(pres, start_slide)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 222, in __init__
    self.prep_pres(self.pres, start_idx)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 235, in prep_pres
    self.update()
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 307, in update
    self.update_body()
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 277, in 
update_body
    rendered = self.slide_renderer.render_slide(self.curr_slide)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 75, in 
render_slide
    raise res
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 105, in run
    res = self.do_render(to_render, slide_num)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 157, in do_render
    self._render_tokens(tokens)
  File "/usr/lib/python3/dist-packages/lookatme/tui.py", line 175, in 
_render_tokens
    render_token = getattr(lam_md, f"render_{token['type']}")
AttributeError: module 'lookatme.render.markdown_block' has no attribute 
'render_close_html'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/lookatme", line 33, in <module>
    sys.exit(load_entry_point('lookatme==2.3.0', 'console_scripts', 
'lookatme')())
  File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lookatme/__main__.py", line 141, in main
    number = pres.tui.curr_slide.number + 1
AttributeError: 'NoneType' object has no attribute 'curr_slide'
-----------------------------------------------------------------------

it would be great to have it instead give some helpful output if it's not happy
with the markdown file.

Greetings,
Lee


-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-0.deb11.4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lookatme depends on:
ii  libjs-sphinxdoc      3.4.3-2
ii  python3              3.9.2-3
ii  python3-click        7.1.2-1
ii  python3-marshmallow  3.10.0-1
ii  python3-mistune      0.8.4-4
ii  python3-pygments     2.7.1+dfsg-2.1
ii  python3-urwid        2.1.2-1
ii  python3-yaml         5.3.1-5

lookatme recommends no packages.

lookatme suggests no packages.

-- no debconf information

Reply via email to