You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see error when I try to use the recently added colors (light/dark , black)
Traceback (most recent call last):
File "/Users/noob/Documents/code-sandbox/py/python-experiments/termcolor-test.py", line 60, in <module>
cprint(f"Color: {c}", c, attrs=["bold"])
File "/Users/noob/.pyenv/versions/3.9.14/lib/python3.9/site-packages/termcolor/termcolor.py", line 171, in cprintprint((colored(text, color, on_color, attrs)), **kwargs)
File "/Users/noob/.pyenv/versions/3.9.14/lib/python3.9/site-packages/termcolor/termcolor.py", line 147, in colored
text = fmt_str % (COLORS[color], text)
KeyError: 'black'
Even when running the demo I only see the limited colors (as opposed to screenshot in PR #32)
My version is 2.1.1
╰─ pip show termcolor
Name: termcolor
Version: 2.1.1
Summary: ANSI color formatting for output in terminal
Home-page:
Author:
Author-email: Konstantin Lepa <konstantin.lepa@gmail.com>
License: MIT
Tried on both MacOS Terminal and Alacritty with zsh.
Is there something I'm missing here?
How could I use the new color shades?
The text was updated successfully, but these errors were encountered:
I see error when I try to use the recently added colors (light/dark , black)
Even when running the demo I only see the limited colors (as opposed to screenshot in PR #32)
My version is 2.1.1
Tried on both MacOS Terminal and Alacritty with zsh.
Is there something I'm missing here?
How could I use the new color shades?
The text was updated successfully, but these errors were encountered: