Skip to content

Fix to allow cubed to work without diagnostics#856

Merged
tomwhite merged 1 commit intomainfrom
fix-diagnostics-import
Jan 8, 2026
Merged

Fix to allow cubed to work without diagnostics#856
tomwhite merged 1 commit intomainfrom
fix-diagnostics-import

Conversation

@tomwhite
Copy link
Copy Markdown
Member

@tomwhite tomwhite commented Jan 8, 2026

Fix for the following bug:

% pip install 'git+https://github.com/cubed-dev/cubed.git' 
% python
>>> import cubed
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/tom/workspace/cubed/cubed/__init__.py", line 16, in <module>
    import cubed.random  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^
  File "/Users/tom/workspace/cubed/cubed/random.py", line 7, in <module>
    from cubed.core.ops import map_blocks
  File "/Users/tom/workspace/cubed/cubed/core/__init__.py", line 2, in <module>
    from .array import CoreArray, compute, gensym, measure_reserved_mem, visualize
  File "/Users/tom/workspace/cubed/cubed/core/array.py", line 15, in <module>
    from .plan import FinalizedPlan, arrays_to_plan
  File "/Users/tom/workspace/cubed/cubed/core/plan.py", line 16, in <module>
    from cubed.diagnostics.colors import APRICOT, LAVENDER, RED
  File "/Users/tom/workspace/cubed/cubed/diagnostics/__init__.py", line 1, in <module>
    from .rich import RichProgressBar as ProgressBar
  File "/Users/tom/workspace/cubed/cubed/diagnostics/rich.py", line 6, in <module>
    from rich.console import RenderableType
ModuleNotFoundError: No module named 'rich'

@tomwhite tomwhite added the bug Something isn't working label Jan 8, 2026
@tomwhite tomwhite merged commit 3e8994a into main Jan 8, 2026
20 of 21 checks passed
@tomwhite tomwhite deleted the fix-diagnostics-import branch January 8, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant