用了很多工作流都需要这个节点直接在comfyui安装或者复制别的整合包过来就会有如下报错。
Traceback (most recent call last): File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2720, in LoadNvmlLibrary nvmlLib = CDLL(os.path.join(os.getenv("WINDIR", "C:/Windows"), "System32/nvml.dll")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p3118\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\ctypes_init.py", line 379, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'C:\windows\System32\nvml.dll' (or one of its dependencies). Try using the full path with constructor syntax. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2724, in LoadNvmlLibrary nvmlLib = CDLL(os.path.join(os.getenv("ProgramFiles", "C:/Program Files"), "NVIDIA Corporation/NVSMI/nvml.dll")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p3118\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\ctypes_init.py", line 379, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'C:\Program Files\NVIDIA Corporation\NVSMI\nvml.dll' (or one of its dependencies). Try using the full path with constructor syntax. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\p3118\AppData\Local\Comfy-Desktop\ComfyUI-Installs\ComfyUI\ComfyUI\nodes.py", line 2263, in load_custom_node module_spec.loader.exec_module(module) File "", line 999, in exec_module File "", line 488, in call_with_frames_removed File "F:\AI\custom_nodes\reservedvram_init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "F:\AI\custom_nodes\reservedvram\nodes.py", line 10, in pynvml.nvmlInit() File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2699, in nvmlInit nvmlInitWithFlags(0) File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2682, in nvmlInitWithFlags _LoadNvmlLibrary() File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2729, in _LoadNvmlLibrary _nvmlCheckReturn(NVML_ERROR_LIBRARY_NOT_FOUND) File "F:\AI.venv\Lib\site-packages\pynvml.py", line 1059, in _nvmlCheckReturn raise NVMLError(ret) pynvml.NVMLError_LibraryNotFound: NVML Shared Library Not Found
用了很多工作流都需要这个节点直接在comfyui安装或者复制别的整合包过来就会有如下报错。
Traceback (most recent call last): File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2720, in LoadNvmlLibrary nvmlLib = CDLL(os.path.join(os.getenv("WINDIR", "C:/Windows"), "System32/nvml.dll")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p3118\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\ctypes_init.py", line 379, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'C:\windows\System32\nvml.dll' (or one of its dependencies). Try using the full path with constructor syntax. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2724, in LoadNvmlLibrary nvmlLib = CDLL(os.path.join(os.getenv("ProgramFiles", "C:/Program Files"), "NVIDIA Corporation/NVSMI/nvml.dll")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p3118\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\ctypes_init.py", line 379, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'C:\Program Files\NVIDIA Corporation\NVSMI\nvml.dll' (or one of its dependencies). Try using the full path with constructor syntax. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\p3118\AppData\Local\Comfy-Desktop\ComfyUI-Installs\ComfyUI\ComfyUI\nodes.py", line 2263, in load_custom_node module_spec.loader.exec_module(module) File "", line 999, in exec_module File "", line 488, in call_with_frames_removed File "F:\AI\custom_nodes\reservedvram_init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "F:\AI\custom_nodes\reservedvram\nodes.py", line 10, in pynvml.nvmlInit() File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2699, in nvmlInit nvmlInitWithFlags(0) File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2682, in nvmlInitWithFlags _LoadNvmlLibrary() File "F:\AI.venv\Lib\site-packages\pynvml.py", line 2729, in _LoadNvmlLibrary _nvmlCheckReturn(NVML_ERROR_LIBRARY_NOT_FOUND) File "F:\AI.venv\Lib\site-packages\pynvml.py", line 1059, in _nvmlCheckReturn raise NVMLError(ret) pynvml.NVMLError_LibraryNotFound: NVML Shared Library Not Found