Files
rohit267-champdev-comfyui-n…/__init__.py
Rohit MahtoandClaude Opus 4.8 86e483ccf1 fix(terminal): install pywinpty so the Windows terminal works
The Windows terminal failed with "No module named 'winpty'" because the
pywinpty dependency was declared only in pyproject.toml. The documented
git-clone install and ComfyUI-Manager both rely on requirements.txt, which
didn't exist, so pywinpty was never installed on Windows.

- Add requirements.txt with `pywinpty; sys_platform == "win32"`.
- Raise an actionable error (with the exact `pip install pywinpty` command)
  when pywinpty is missing, instead of leaking a cryptic ImportError to the UI.
- Update README install steps to install dependencies; drop the inaccurate
  "installed automatically" claim.
- Bump to 0.4.3 and align __init__ __version__ (was stale at 0.3.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 22:46:00 +05:30

46 lines
1.3 KiB
Python

import logging
_logger = logging.getLogger(__name__)
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
try:
from .nodes import (
NODE_CLASS_MAPPINGS as _SAVE_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _SAVE_NAMES,
)
NODE_CLASS_MAPPINGS.update(_SAVE_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_SAVE_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: save nodes failed to load: %s", e)
try:
from .filemanager import (
NODE_CLASS_MAPPINGS as _FM_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _FM_NAMES,
)
NODE_CLASS_MAPPINGS.update(_FM_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_FM_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: file manager node failed to load: %s", e)
try:
from .terminal import (
NODE_CLASS_MAPPINGS as _TERM_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _TERM_NAMES,
)
NODE_CLASS_MAPPINGS.update(_TERM_CLASSES)
NODE_DISPLAY_NAME_MAPPINGS.update(_TERM_NAMES)
except ImportError as e:
_logger.warning("champdev-comfyui-nodes: terminal node failed to load: %s", e)
WEB_DIRECTORY = "web"
__version__ = "0.4.3"
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
"WEB_DIRECTORY",
"__version__",
]