Skip to content

urwid 2.4.2 and higher break stig #244

@mfonville

Description

@mfonville

When stig wasn't working with the latest urwid, I tried several versions to pinpoint which had the breaking changes, which is 2.4.2

Trace:

Traceback (most recent call last):
  File "/home/maarten/.local/bin/stig", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/__init__.py", line 25, in run
    main.run()
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/main.py", line 102, in run
    if not tui.run(run_commands):
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/main.py", line 30, in run
    from . import tuiobjects
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/tuiobjects.py", line 107, in <module>
    logwidget = LogWidget(height=int(objects.localcfg['tui.log.height']),
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/logger.py", line 45, in __init__
    self._scrollable = Scrollable(self._pile)
                       ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/maarten/.local/pipx/venvs/stig/lib/python3.11/site-packages/stig/tui/scroll.py", line 46, in __init__
    raise ValueError('Not a fixed or flow widget: %r' % widget)
ValueError: Not a fixed or flow widget: <Pile widget>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions