-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgutil.ImpImporter is deprecated, and Python 3.12 no longer supports this functionality #63
Comments
File "C:\pinokio\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2089, in load_custom_node |
ChatGPT helped me fix this issue by updating utils.py import os from PIL import Image from .logger import logger class AnyType(str): any_type = AnyType("*") def ensure_package(package, version=None, install_package_name=None): def _construct_pip_command(package_name, version=None):
def get_dict_attribute(dict_inst: dict, name_string: str, default=None):
def set_dict_attribute(dict_inst: dict, name_string: str, value):
def is_junction(src: str) -> bool:
def load_module(module_path, module_name=None):
def pil2numpy(image: Image.Image): def numpy2pil(image: np.ndarray, mode=None): def pil2tensor(image: Image.Image): def tensor2pil(image: torch.Tensor, mode=None): def tensor2bytes(image: torch.Tensor) -> bytes: def pil2base64(image: Image.Image): |
(.venv) PS D:\AI\ComfyUI> python main.py
[START] Security scan
[DONE] Security scan
ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-11-27 19:43:50.481212
** Platform: Windows
** Python version: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)]
** Python executable: D:\AI\ComfyUI.venv\Scripts\python.exe
** ComfyUI Path: D:\AI\ComfyUI
** Log path: D:\AI\ComfyUI\comfyui.log
Prestartup times for custom nodes:
0.0 seconds: D:\AI\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Easy-Use
10.4 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Manager
Total VRAM 8188 MB, total RAM 65416 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: D:\AI\ComfyUI\web
Adding D:\AI\ComfyUI\custom_nodes to sys.path
Traceback (most recent call last):
File "D:\AI\ComfyUI\nodes.py", line 2027, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "D:\AI\ComfyUI\custom_nodes\comfyui-art-venture_init.py", line 13, in
from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "D:\AI\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 12, in
from .utility_nodes import (
File "D:\AI\ComfyUI\custom_nodes\comfyui-art-venture\modules\utility_nodes.py", line 17, in
from .utils import pil2tensor, tensor2pil, ensure_package, get_dict_attribute
File "D:\AI\ComfyUI\custom_nodes\comfyui-art-venture\modules\utils.py", line 9, in
import pkg_resources
File "D:\AI\ComfyUI.venv\Lib\site-packages\pkg_resources_init_.py", line 2191, in
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Cannot import D:\AI\ComfyUI\custom_nodes\comfyui-art-venture module for custom nodes: module 'pkgutil' has no attribute 'ImpImporter'
[ComfyUI-Easy-Use] server: v1.2.5 Loaded
[ComfyUI-Easy-Use] web root: D:\AI\ComfyUI\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded
Total VRAM 8188 MB, total RAM 65416 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync
Loading: ComfyUI-Impact-Pack (V7.12)
Loading: ComfyUI-Impact-Pack (Subpack: V0.8)
[Impact Pack] Wildcards loading done.
D:\AI\ComfyUI.venv\Lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
theUpsiders Logic Nodes: Loaded
Loading: ComfyUI-Manager (V2.52.1)
ComfyUI Revision: 2865 [497db621] | Released on '2024-11-26'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
Mixlab Nodes: Loaded
json_repair## OK
ChatGPT.available True
edit_mask.available True
ClipInterrogator.available True
PromptGenerate.available True
ChinesePrompt.available True
RembgNode_.available True
TripoSR.available
MiniCPMNode.available
Scenedetect.available
FishSpeech.available
SenseVoice.available
Whisper.available False
fal-client## OK
FalVideo.available
[ReActor] - STATUS - Running v0.5.2-a1 in ComfyUI
Torch version: 2.5.1+cu124
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
here: D:\AI\ComfyUI\custom_nodes\ComfyUI-tbox
Using ckpts path: D:\AI\ComfyUI\custom_nodes\ComfyUI-tbox....\models\annotator
Using symlinks: False
Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider']
DWPose: Onnxruntime with acceleration providers detected
(pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider
(pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider
Comfyroll Studio v1.76 : 175 Nodes Loaded
** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
[comfyui_controlnet_aux] | INFO -> Using ckpts path: D:\AI\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
[comfy_mtb] | INFO -> loaded 88 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!
[rgthree-comfy] Loaded 42 extraordinary nodes. 🎉
WAS Node Suite: BlenderNeko's Advanced CLIP Text Encode found, attempting to enable
CLIPTextEncode
support.WAS Node Suite:
CLIPTextEncode (BlenderNeko Advanced + NSP)
node enabled underWAS Suite/Conditioning
menu.WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite:
ffmpeg_bin_path
is set to: D:/AI/wb/ffmpeg/bin/ffmpeg.exeWAS Node Suite: Finished. Loaded 219 nodes successfully.
Import times for custom nodes:
0.0 seconds: D:\AI\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: D:\AI\ComfyUI\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION
0.0 seconds: D:\AI\ComfyUI\custom_nodes\Batch-Condition-ComfyUI
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-IC-Light-Native
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Logic
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_HF_Servelress_Inference
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
0.0 seconds: D:\AI\ComfyUI\custom_nodes\Comfyui_CXH_joy_caption
0.0 seconds: D:\AI\ComfyUI\custom_nodes\comfyui-inpaint-nodes
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
0.0 seconds: D:\AI\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: D:\AI\ComfyUI\custom_nodes\comfyui-various
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Florence2
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: D:\AI\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_CatVTON_Wrapper
0.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-KJNodes
0.0 seconds: D:\AI\ComfyUI\custom_nodes\rgthree-comfy
0.1 seconds: D:\AI\ComfyUI\custom_nodes\efficiency-nodes-comfyui
0.1 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-IC-Light
0.1 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
0.1 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_InstantID
0.1 seconds: D:\AI\ComfyUI\custom_nodes\comfyui_controlnet_aux
0.1 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
0.1 seconds (IMPORT FAILED): D:\AI\ComfyUI\custom_nodes\comfyui-art-venture
0.1 seconds: D:\AI\ComfyUI\custom_nodes\comfy_mtb
0.2 seconds: D:\AI\ComfyUI\custom_nodes\comfyui_segment_anything
0.2 seconds: D:\AI\ComfyUI\custom_nodes\Comfyui-ergouzi-Nodes
0.3 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI_LayerStyle
0.4 seconds: D:\AI\ComfyUI\custom_nodes\comfyui-reactor-node
0.4 seconds: D:\AI\ComfyUI\custom_nodes\comfyui-ollama
0.8 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
0.9 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-tbox
0.9 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-BrushNet
0.9 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-SUPIR
1.0 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Easy-Use
1.2 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Manager
1.2 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait
3.4 seconds: D:\AI\ComfyUI\custom_nodes\ComfyUI-Inspyrenet-Rembg
5.5 seconds: D:\AI\ComfyUI\custom_nodes\was-node-suite-comfyui
6.2 seconds: D:\AI\ComfyUI\custom_nodes\comfyui-mixlab-nodes
Starting server
To see the GUI go to: http://127.0.0.1:8188
The text was updated successfully, but these errors were encountered: