Skip to content

IDAES home not found #28

Description

@adam-a-a

Tried generating D2 file but IDAES home wasn't found.

File c:\Users\Adam\.conda\envs\watertap-dev\Lib\site-packages\idaes_connectivity\base.py:844, in D2.write(self, output_file)
    842 def write(self, output_file: Union[str, TextIO, None]) -> Optional[str]:
    843     """Write D2 text description."""
--> [844](file:///C:/Users/Adam/.conda/envs/watertap-dev/Lib/site-packages/idaes_connectivity/base.py:844)     unit_icon = UnitIcon(IdaesPaths.icons())
    845     feed_num, sink_num = 1, 1
    846     f = self._get_output_stream(output_file)

File c:\Users\Adam\.conda\envs\watertap-dev\Lib\site-packages\idaes_connectivity\util.py:61, in IdaesPaths.icons(cls, group)
     54 @classmethod
     55 def icons(cls, group: str = None):
     56     """Path to the directory of SVG icons
     57 
     58     Args:
     59       group: Currently ignored, but in the future can be used to retrieve different groups of icons.
     60     """
---> [61](file:///C:/Users/Adam/.conda/envs/watertap-dev/Lib/site-packages/idaes_connectivity/util.py:61)     return cls._home() / "icon_shapes"

File c:\Users\Adam\.conda\envs\watertap-dev\Lib\site-packages\idaes_connectivity\util.py:49, in IdaesPaths._home(cls)
     46 @classmethod
     47 def _home(cls):
     48     if not cls._idaes_home.exists():
---> [49](file:///C:/Users/Adam/.conda/envs/watertap-dev/Lib/site-packages/idaes_connectivity/util.py:49)         raise ValueError(f"IDAES  directory '{cls._idaes_home}' not found")
     50     if not cls._idaes_home.is_dir():
     51         raise ValueError(f"IDAES path '{cls._idaes_home}' is not a directory")

ValueError: IDAES  directory 'C:\Users\Adam\.idaes' not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions