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 "Unrecognised color specification" #124

Closed
highvoltage opened this issue Sep 9, 2019 · 4 comments

Comments

@highvoltage
Copy link

commented Sep 9, 2019

I build a debian package from the 0.23.1 sources and when running 'toot tui', I get the following:

$ toot tui
Traceback (most recent call last):
  File "/usr/bin/toot", line 11, in <module>
    load_entry_point('toot==0.23.1', 'console_scripts', 'toot')()
  File "/usr/lib/python3/dist-packages/toot/console.py", line 545, in main
    run_command(app, user, command_name, args)
  File "/usr/lib/python3/dist-packages/toot/console.py", line 527, in run_command
    return fn(app, user, parsed_args)
  File "/usr/lib/python3/dist-packages/toot/commands.py", line 331, in tui
    TUI.create(app, user).run()
  File "/usr/lib/python3/dist-packages/toot/tui/app.py", line 79, in create
    unhandled_input=tui.unhandled_input,
  File "/home/jonathan/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 114, in __init__
    screen.register_palette(palette)
  File "/home/jonathan/.local/lib/python3.7/site-packages/urwid/display_common.py", line 778, in register_palette
    self.register_palette_entry(*item)
  File "/home/jonathan/.local/lib/python3.7/site-packages/urwid/display_common.py", line 845, in register_palette_entry
    basic = AttrSpec(foreground, background, 16)
  File "/home/jonathan/.local/lib/python3.7/site-packages/urwid/display_common.py", line 489, in __init__
    self.foreground = fg
  File "/home/jonathan/.local/lib/python3.7/site-packages/urwid/display_common.py", line 578, in _set_foreground
    "in foreground (%s)") % (repr(part), repr(foreground)))
urwid.display_common.AttrSpecError: Unrecognised color specification 'italics'in foreground (',italics')
@ihabunek

This comment has been minimized.

Copy link
Owner

commented Sep 11, 2019

I cannot reproduce this on a clean Debian 10 machine. What version of Urwid do you have installed? I think you may have urwid 1.x, and toot requires urwid 2.x.

@highvoltage

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

Debian has urwid 2.x, will check again tonight, maybe I had something old installed via pip.

@ihabunek

This comment has been minimized.

Copy link
Owner

commented Sep 22, 2019

@highvoltage I'm guessing this can be closed since 0.23.1 was accepted into testing?

@highvoltage

This comment has been minimized.

Copy link
Author

commented Sep 23, 2019

I'm not sure what went wrong before but it seems to work fine for me now, so yes, closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.