{"id":23445,"library":"comfy-env","title":"comfy-env","description":"Environment management for ComfyUI custom nodes - CUDA wheel resolution and process isolation. Current version 0.3.47, released irregularly.","status":"active","version":"0.3.47","language":"python","source_language":"en","source_url":"https://github.com/PozzettiAndrea/comfy-env","tags":["comfyui","environment-management","cuda","process-isolation"],"install":[{"cmd":"pip install comfy-env","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"CUDA wheel resolution requires torch to detect CUDA version","package":"torch","optional":true}],"imports":[{"note":"The class was renamed to ComfyEnvManager in v0.3.0","wrong":"from comfy_env import EnvManager","symbol":"ComfyEnvManager","correct":"from comfy_env import ComfyEnvManager"},{"note":"Process isolation function renamed in v0.2.0","wrong":"from comfy_env import process_isolation","symbol":"isolation_context","correct":"from comfy_env import isolation_context"}],"quickstart":{"code":"from comfy_env import ComfyEnvManager, isolation_context\n\n# Resolve CUDA wheel for current environment\nmanager = ComfyEnvManager()\nwheel_path = manager.resolve_cuda_wheel()\nprint(f\"Resolved wheel: {wheel_path}\")\n\n# Run code in isolated subprocess\nwith isolation_context():\n    # Your isolated code here\n    pass\n","lang":"python","description":"Basic usage: resolve CUDA wheel and use process isolation."},"warnings":[{"fix":"Use 'from comfy_env import ComfyEnvManager' instead of 'from comfy_env import EnvManager'.","message":"In v0.3.0, the main class was renamed from EnvManager to ComfyEnvManager. Old imports will break.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Use 'from comfy_env import isolation_context' instead of 'from comfy_env import process_isolation'.","message":"In v0.2.0, the isolation function was renamed from process_isolation to isolation_context.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Ensure torch is installed before calling resolve_cuda_wheel().","message":"The CUDA wheel resolution requires torch to be installed in the environment; otherwise it will raise an error.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install comfy-env' in the correct Python environment.","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'comfy_env'"},{"fix":"Use 'from comfy_env import ComfyEnvManager'.","cause":"Using an outdated import path after v0.3.0 rename.","error":"ImportError: cannot import name 'EnvManager' from 'comfy_env'"},{"fix":"Install torch with CUDA: 'pip install torch --index-url https://download.pytorch.org/whl/cu118' (adjust version).","cause":"torch not installed or installed without CUDA support.","error":"RuntimeError: CUDA not available. Please install torch with CUDA support."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}