[BUG] Info with verbosity returns error
blythed opened this issue · comments
blythed commented
Code:
app.info(verbosity=2)
Output
2024-Jul-29 13:19:18.51| WARNING | statefulset-0| superduper.base.document:414 | Leaf String already exists
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 app.info(verbosity=2)
File [~/.local/lib/python3.10/site-packages/superduper/components/component.py:576](https://fyz4f7n-ngkjqqn-superduperdbeu.snowflakecomputing.app/home/superduper/.local/lib/python3.10/site-packages/superduper/components/component.py#line=575), in Component.info(self, verbosity)
570 """Method to display the component information.
571
572 :param verbosity: Verbosity level.
573 """
574 from superduper.misc.special_dicts import _display_component
--> 576 _display_component(self, verbosity=verbosity)
File [~/.local/lib/python3.10/site-packages/superduper/misc/special_dicts.py:456](https://fyz4f7n-ngkjqqn-superduperdbeu.snowflakecomputing.app/home/superduper/.local/lib/python3.10/site-packages/superduper/misc/special_dicts.py#line=455), in _display_component(obj, verbosity)
451 if verbosity > 1:
452 tree = Tree(
453 Text(f'Component Map: {obj.identifier}', style="bold green"),
454 guide_style="bold green",
455 )
--> 456 _childrens(tree, obj, nesting=verbosity - 1)
458 additional_info_panel = Panel(
459 base_component_metadata, title="Component Metadata", border_style="blue"
460 )
461 panels = Columns([properties_panel, additional_info_panel])
File [~/.local/lib/python3.10/site-packages/superduper/misc/special_dicts.py:362](https://fyz4f7n-ngkjqqn-superduperdbeu.snowflakecomputing.app/home/superduper/.local/lib/python3.10/site-packages/superduper/misc/special_dicts.py#line=361), in _childrens(tree, object, nesting)
361 def _childrens(tree, object, nesting=1):
--> 362 if not object.builds or not nesting:
363 return
364 for name, child in object.builds.items():
AttributeError: 'Application' object has no attribute 'builds'