Skip to content

ERROR: Theme 'cyan' has not been registered. Call 'App.register_theme' before setting the 'App.theme' attribute. #5

@Soviut

Description

@Soviut

I am getting the following error when I try to run sudo fluidtop.

➜  ~ sudo fluidtop

FLUIDTOP - Performance monitoring CLI tool for Apple Silicon
Get help at `https://github.com/FluidInference/fluidtop`
P.S. You are recommended to run FLUIDTOP with `sudo fluidtop`

Traceback (most recent call last):
  File "/Users/ian/Library/Python/3.9/bin/fluidtop", line 8, in <module>
    sys.exit(main())
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/fluidtop/fluidtop.py", line 563, in main
    return _main_logic(interval, theme, avg, max_count)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/fluidtop/fluidtop.py", line 573, in _main_logic
    app = FluidTopApp(interval, theme, avg, max_count)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/fluidtop/fluidtop.py", line 169, in __init__
    self.theme = theme_value
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/textual/reactive.py", line 374, in __set__
    self._set(obj, value)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/textual/reactive.py", line 340, in _set
    value = private_validate_function(value)
  File "/Users/ian/Library/Python/3.9/lib/python/site-packages/textual/app.py", line 1488, in _validate_theme
    raise InvalidThemeError(message)
textual.app.InvalidThemeError: Theme 'cyan' has not been registered. Call 'App.register_theme' before setting the 'App.theme' attribute.

Specs

M4 Mac Mini

➜  ~ sw_vers
ProductName:            macOS
ProductVersion:         15.5
BuildVersion:           24F74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions